Last active
August 9, 2016 09:05
-
-
Save markmcdermid/f11bee6c483795f0a89a4ca740e142e3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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