Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.