verdnatura-chat/app/sagas/hello.js

18 lines
340 B
JavaScript
Raw Normal View History

2017-08-16 22:51:37 +00:00
import { take, fork } from 'redux-saga/effects';
import 'babel-polyfill';
import 'regenerator-runtime/runtime';
const foreverAlone = function* foreverAlone() {
yield take('cagado');
console.log('foi cagado');
yield take('voa');
console.log('o');
};
const root = function* root() {
yield fork(foreverAlone);
};
export default root;