Created
November 7, 2018 19:52
-
-
Save productioncoder/75a2048aa39d7c4308f0e72bee87e268 to your computer and use it in GitHub Desktop.
Youtube in React: fetch related videos in saga
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) { | |
let requests = [ | |
buildVideoDetailRequest.bind(null, videoId), | |
buildRelatedVideosRequest.bind(null, videoId), | |
]; | |
/* ... */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment