Skip to content

Instantly share code, notes, and snippets.

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