Created
November 14, 2018 20:39
-
-
Save productioncoder/117d30b1ec5093524ed2d30d75b469a3 to your computer and use it in GitHub Desktop.
Youtube in React: passing along video id WATCH_DETAILS success action creator
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, 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