This commit is contained in:
crusader 2017-06-28 20:49:34 +09:00
parent ffbc0f7ecc
commit 57ee426b28
2 changed files with 3 additions and 22 deletions

View File

@ -1,7 +1,7 @@
import { Action, combineReducers } from 'redux';
import { routerReducer, RouterState } from 'react-router-redux';
import { SagaIterator } from 'redux-saga';
import { Effect, fork, ForkEffect } from 'redux-saga/effects';
import { fork } from 'redux-saga/effects';
import * as Member from 'member';
@ -18,22 +18,3 @@ export const reducer = combineReducers<State>({
export function* sagas(): SagaIterator {
yield fork(Member.sagas);
}
// export function* sagas(): Iterator<Effect> {
// function* itor(values: {[key: string]: string | any}): Iterator<Effect> {
// for (let name in values) {
// if (values.hasOwnProperty(name)) {
// let saga = values[name];
// console.log('key:' + name + ' value:' + saga);
// if (typeof saga === 'object') {
// itor(saga);
// } else {
// yield fork(saga);
// }
// }
// }
// }
// itor(_sagas);
// }

View File

@ -1,5 +1,5 @@
import { channel, takeEvery, takeLatest, SagaIterator } from 'redux-saga';
import { call, Effect, fork, ForkEffect, put, TakeEffect } from 'redux-saga/effects';
import { takeLatest, SagaIterator } from 'redux-saga';
import { call, Effect, fork, put } from 'redux-saga/effects';
import Action from 'commons/redux/Action';