Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Created November 7, 2018 19:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save productioncoder/75a2048aa39d7c4308f0e72bee87e268 to your computer and use it in GitHub Desktop.
Save productioncoder/75a2048aa39d7c4308f0e72bee87e268 to your computer and use it in GitHub Desktop.
Youtube in React: fetch related videos in saga
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