vn-verdnaturachat/app/sagas/index.js

31 lines
620 B
JavaScript
Raw Normal View History

2017-08-17 00:24:06 +00:00
import { take, fork } from 'redux-saga/effects';
import hello from './hello';
import login from './login';
const root = function* root() {
yield fork(hello);
yield fork(login);
};
// Consider using takeEvery
export default root;
//
// import { take, fork } from 'redux-saga/effects';
// import 'babel-polyfill';
// import 'regenerator-runtime/runtime';
//
//
// const foreverAlone = function* foreverAlone() {
// yield take('FOI');
// console.log('FOIIIIIII');
// yield take('voa');
// console.log('o');
// };
//
// const root = function* root() {
// yield fork(foreverAlone);
// };
//
// export default root;