Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Created October 27, 2018 12:44
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 productioncoder/2f48bad058dfe8b591e86adbc287dcf9 to your computer and use it in GitHub Desktop.
Save productioncoder/2f48bad058dfe8b591e86adbc287dcf9 to your computer and use it in GitHub Desktop.
Youtube most popular videos by category action creator
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