Skip to content

Instantly share code, notes, and snippets.

@productioncoder productioncoder/watch.js
Last active Nov 3, 2018

Embed
What would you like to do?
Youtube watch details watcher saga
import {fork, take} from 'redux-saga/effects';
import * as watchActions from '../actions/watch';
import {REQUEST} from '../actions';
export function* watchWatchDetails() {
while (true) {
const {videoId} = yield take(watchActions.WATCH_DETAILS[REQUEST]);
yield fork(fetchWatchDetails, videoId);
}
}
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.