Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Created October 24, 2018 18:57
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/d5aa4a30e8ee7eff661be48f53867030 to your computer and use it in GitHub Desktop.
Save productioncoder/d5aa4a30e8ee7eff661be48f53867030 to your computer and use it in GitHub Desktop.
Youtube VideoCategory actions
export const VIDEO_CATEGORIES = createRequestTypes('VIDEO_CATEGORIES');
export const categories = {
request: () => createAction(VIDEO_CATEGORIES[REQUEST]),
success: (response) => createAction(VIDEO_CATEGORIES[SUCCESS], {response}),
failure: (response) => createAction(VIDEO_CATEGORIES[FAILURE], {response}),
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment