2018-02-16 22:57:46 +00:00
|
|
|
import { put, takeLatest } from 'redux-saga/effects';
|
2017-12-08 19:13:21 +00:00
|
|
|
import * as types from '../actions/actionsTypes';
|
|
|
|
|
|
|
|
import { setActiveUser } from '../actions/activeUsers';
|
|
|
|
|
2018-02-16 22:57:46 +00:00
|
|
|
const watchActiveUsers = function* handleInput({ users }) {
|
|
|
|
yield put(setActiveUser(users));
|
2017-12-08 19:13:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
const root = function* root() {
|
2018-02-16 22:57:46 +00:00
|
|
|
yield takeLatest(types.ACTIVE_USERS.REQUEST, watchActiveUsers);
|
2017-12-08 19:13:21 +00:00
|
|
|
};
|
|
|
|
export default root;
|