sagaWatchers incorrect spell

This commit is contained in:
crusader 2017-08-10 14:41:15 +09:00
parent ac6a44d2ef
commit 9c0f27b9a2
2 changed files with 5 additions and 5 deletions

View File

@ -24,7 +24,7 @@ const rpcConfig: RPCConfig = {
export interface ReduxConfig { export interface ReduxConfig {
state: ReduxState; state: ReduxState;
reducerMaps: ReducersMapObject[]; reducerMaps: ReducersMapObject[];
sagaWarchers: Class<SagaWatcher>[]; sagaWatchers: Class<SagaWatcher>[];
} }
export interface ReduxState { export interface ReduxState {
@ -38,7 +38,7 @@ const reduxConfig: ReduxConfig = {
reducerMaps: [ reducerMaps: [
signInReducer, signInReducer,
], ],
sagaWarchers: [ sagaWatchers: [
AsyncRequest, AsyncRequest,
], ],
}; };

View File

@ -142,15 +142,15 @@ class OFApplication {
OFApplication.useReduxDevTools ? compose(middleware, window.devToolsExtension()) : middleware, OFApplication.useReduxDevTools ? compose(middleware, window.devToolsExtension()) : middleware,
); );
// saga // saga
this.sagaMiddleware.run(this.initReduxSagaWarchers, this.config.redux.sagaWarchers, this.rpcClient); this.sagaMiddleware.run(this.initReduxSagaWarchers, this.config.redux.sagaWatchers, this.rpcClient);
resolve(); resolve();
}); });
return init; return init;
} }
private * initReduxSagaWarchers(sagaWarchers: Class<SagaWatcher>[], rpcClient: WebSocketRPC): SagaIterator { private * initReduxSagaWarchers(sagaWatchers: Class<SagaWatcher>[], rpcClient: WebSocketRPC): SagaIterator {
for (let type of sagaWarchers) { for (let type of sagaWatchers) {
let instance = Object.create(type.prototype); let instance = Object.create(type.prototype);
instance.constructor.call(instance); instance.constructor.call(instance);