verdnatura-chat/app/sagas/index.js

23 lines
590 B
JavaScript
Raw Normal View History

import { fork, take } from 'redux-saga/effects';
import * as types from '../actions/actionsTypes';
2017-08-17 00:24:06 +00:00
import hello from './hello';
import login from './login';
2017-08-17 01:06:31 +00:00
import connect from './connect';
2017-08-17 02:06:22 +00:00
import rooms from './rooms';
2017-08-17 06:28:41 +00:00
import messages from './messages';
import selectServer from './selectServer';
import init from './init';
2017-08-17 00:24:06 +00:00
const root = function* root() {
yield fork(init);
yield take(types.APP.READY);
2017-08-17 00:24:06 +00:00
yield fork(hello);
2017-08-17 02:06:22 +00:00
yield fork(rooms);
2017-08-17 00:24:06 +00:00
yield fork(login);
2017-08-17 01:06:31 +00:00
yield fork(connect);
2017-08-17 06:28:41 +00:00
yield fork(messages);
yield fork(selectServer);
2017-08-17 00:24:06 +00:00
};
// Consider using takeEvery
export default root;