Created
November 13, 2018 21:20
-
-
Save productioncoder/db0087a415361773b2c8a9e7f8201976 to your computer and use it in GitHub Desktop.
Youtube in React: comment thread 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 COMMENT_THREAD = createRequestTypes('COMMENT_THREAD'); | |
export const thread = { | |
request: (videoId, nextPageToken) => createAction(COMMENT_THREAD[REQUEST], {videoId, nextPageToken}), | |
success: (response, videoId) => createAction(COMMENT_THREAD[SUCCESS], {response, videoId}), | |
failure: (response) => createAction(COMMENT_THREAD[FAILURE], {response}), | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment