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