Created
November 11, 2018 13:39
-
-
Save productioncoder/a3371b7637cbc01419bb506c66814370 to your computer and use it in GitHub Desktop.
Youtube in React: passing channel id to WATCH_DETAILS_REQUEST action
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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