Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Created November 11, 2018 13:39
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/a3371b7637cbc01419bb506c66814370 to your computer and use it in GitHub Desktop.
Save productioncoder/a3371b7637cbc01419bb506c66814370 to your computer and use it in GitHub Desktop.
Youtube in React: passing channel id to WATCH_DETAILS_REQUEST action
export const WATCH_DETAILS = createRequestTypes('WATCH_DETAILS');
export const details = {
request: (videoId, channelId) => createAction(WATCH_DETAILS[REQUEST], {videoId, channelId}),
success: (response) => createAction(WATCH_DETAILS[SUCCESS], {response}),
failure: (response) => createAction(WATCH_DETAILS[FAILURE], {response}),
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment