Created
October 27, 2018 12:44
-
-
Save productioncoder/2f48bad058dfe8b591e86adbc287dcf9 to your computer and use it in GitHub Desktop.
Youtube most popular videos by category action creator
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 MOST_POPULAR_BY_CATEGORY = createRequestTypes('MOST_POPULAR_BY_CATEGORY'); | |
export const mostPopularByCategory = { | |
request: (categories) => createAction(MOST_POPULAR_BY_CATEGORY[REQUEST], {categories}), | |
success: (response, categories) => createAction(MOST_POPULAR_BY_CATEGORY[SUCCESS], {response, categories}), | |
failure: (response) => createAction(MOST_POPULAR_BY_CATEGORY[FAILURE], response), | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment