Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Youtube in React: updating WATCH_DETAILS worker saga to pass along video id
export function* fetchWatchDetails(videoId, channelId) {
/* ... */
try {
const responses = yield all( => call(fn)));
yield put(watchActions.details.success(responses, videoId));
} catch (error) {
/* ... */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment