Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Youtube in React: comment thread action creator
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