Last active
October 19, 2018 06:10
-
-
Save productioncoder/726714329183bedf01531ef81fd9b204 to your computer and use it in GitHub Desktop.
Youtube run most popular videos watcher 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} 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