Created
November 14, 2018 20:37
-
-
Save productioncoder/674e6f19a5d60be8eecc3b397afa9b52 to your computer and use it in GitHub Desktop.
Youtube in React: updating WATCH_DETAILS worker saga to pass along video id
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 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