Skip to content

Instantly share code, notes, and snippets.

@productioncoder productioncoder/video.js
Last active Feb 28, 2019

Embed
What would you like to do?
Youtube video watcher saga
import * as api from '../api/youtube-api';
import {fork, take, takeEvery, call, all, put} from 'redux-saga/effects';
import {fetchEntity} from './index';
export const fetchVideoCategories = fetchEntity.bind(null, api.buildVideoCategoriesRequest, videoActions.categories);
export function* watchVideoCategories() {
yield takeEvery(videoActions.VIDEO_CATEGORIES[REQUEST], fetchVideoCategories);
}
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.