Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Last active December 17, 2018 14:05
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/e0ad1512ba20dbeb046473f82ee10d03 to your computer and use it in GitHub Desktop.
Save productioncoder/e0ad1512ba20dbeb046473f82ee10d03 to your computer and use it in GitHub Desktop.
Youtube most popular videos by category watcher
export function* watchMostPopularVideosByCategory() {
while(true) {
const {categories} = yield take(videoActions.MOST_POPULAR_BY_CATEGORY[REQUEST]);
yield fork(fetchMostPopularVideosByCategory, categories);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment