Skip to content

Instantly share code, notes, and snippets.

Embed
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(requests.map(fn => 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
You can’t perform that action at this time.