Created
November 10, 2018 10:17
-
-
Save productioncoder/c06b771925fbc272baa02c158c6d9625 to your computer and use it in GitHub Desktop.
Youtube in React: VIDEO_DETAILS 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 VIDEO_DETAILS = createRequestTypes('VIDEO_DETAILS'); | |
export const videoDetails = { | |
request: () => { | |
throw Error('not implemented'); | |
}, | |
success: (response) => createAction(VIDEO_DETAILS[SUCCESS], {response}), | |
failure: (response) => createAction(VIDEO_DETAILS[FAILURE], {response}), | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment