Skip to content

Instantly share code, notes, and snippets.

@markmcdermid
Last active August 9, 2016 09:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markmcdermid/f11bee6c483795f0a89a4ca740e142e3 to your computer and use it in GitHub Desktop.
Save markmcdermid/f11bee6c483795f0a89a4ca740e142e3 to your computer and use it in GitHub Desktop.
export const selectSubreddit = createAction(SELECT_SUBREDDIT);
export const invalidateSubreddit = createAction(INVALIDATE_SUBREDDIT, function (subreddit) {
return { subreddit };
});
export const requestPosts = createAction(REQUEST_POSTS, function (subreddit) {
return { subreddit: subreddit };
});
export const selectSubreddit = createAction(SELECT_SUBREDDIT)
export const invalidateSubreddit = createAction(INVALIDATE_SUBREDDIT, (subreddit) => ({ subreddit }));
export const requestPosts = createAction(REQUEST_POSTS, (subreddit) => ({ subreddit }));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment