Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Created November 10, 2018 10:17
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/c06b771925fbc272baa02c158c6d9625 to your computer and use it in GitHub Desktop.
Save productioncoder/c06b771925fbc272baa02c158c6d9625 to your computer and use it in GitHub Desktop.
Youtube in React: VIDEO_DETAILS action
export const VIDEO_DETAILS = createRequestTypes('VIDEO_DETAILS');
export const videoDetails = {
request: () => {
throw Error('not implemented');
},
success: (response) => createAction(VIDEO_DETAILS[SUCCESS], {response}),
failure: (response) => createAction(VIDEO_DETAILS[FAILURE], {response}),
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment