Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Created November 17, 2018 10:24
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/0d51a5f0d8f86ddcc935a0d05e224a4b to your computer and use it in GitHub Desktop.
Save productioncoder/0d51a5f0d8f86ddcc935a0d05e224a4b to your computer and use it in GitHub Desktop.
Youtube in React: plugging comment thread watcher saga into root saga
import {all, call, put, fork} from 'redux-saga/effects';
import {watchMostPopularVideos, watchMostPopularVideosByCategory, watchVideoCategories} from './video';
import {watchWatchDetails} from './watch';
import {watchCommentThread} from './comment';
export default function* () {
yield all([
fork(watchMostPopularVideos),
fork(watchVideoCategories),
fork(watchMostPopularVideosByCategory),
fork(watchWatchDetails),
fork(watchCommentThread)
]);
}
/* ... */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment