Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Youtube in React: passing along video id WATCH_DETAILS success action creator
export const WATCH_DETAILS = createRequestTypes('WATCH_DETAILS');
export const details = {
request: (videoId, channelId) => createAction(WATCH_DETAILS[REQUEST], {videoId, channelId}),
success: (response, videoId) => createAction(WATCH_DETAILS[SUCCESS], {response, videoId}),
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.