ing
This commit is contained in:
parent
ffbc0f7ecc
commit
57ee426b28
|
@ -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);
|
||||
// }
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user