Skip to content

Instantly share code, notes, and snippets.

@productioncoder productioncoder/index.js
Last active Oct 19, 2018

Embed
What would you like to do?
Youtube run most popular videos watcher saga
import {all, call, put, fork} from 'redux-saga/effects';
import {watchMostPopularVideos} from './video';
export default function* () {
yield all([
fork(watchMostPopularVideos),
]);
}
/*
* entity must have a success, request and failure method
* request is a function that returns a promise when called
* */
export function* fetchEntity(request, entity, ...args) {
/* ... */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.