diff --git a/src/ts/@overflow/app/config/index.ts b/src/ts/@overflow/app/config/index.ts index 6b1c0cf..f73c67b 100644 --- a/src/ts/@overflow/app/config/index.ts +++ b/src/ts/@overflow/app/config/index.ts @@ -24,7 +24,7 @@ const rpcConfig: RPCConfig = { export interface ReduxConfig { state: ReduxState; reducerMaps: ReducersMapObject[]; - sagaWarchers: Class[]; + sagaWatchers: Class[]; } export interface ReduxState { @@ -38,7 +38,7 @@ const reduxConfig: ReduxConfig = { reducerMaps: [ signInReducer, ], - sagaWarchers: [ + sagaWatchers: [ AsyncRequest, ], }; diff --git a/src/ts/@overflow/app/index.tsx b/src/ts/@overflow/app/index.tsx index cbf163e..c4bfe6d 100644 --- a/src/ts/@overflow/app/index.tsx +++ b/src/ts/@overflow/app/index.tsx @@ -142,15 +142,15 @@ class OFApplication { OFApplication.useReduxDevTools ? compose(middleware, window.devToolsExtension()) : middleware, ); // saga - this.sagaMiddleware.run(this.initReduxSagaWarchers, this.config.redux.sagaWarchers, this.rpcClient); + this.sagaMiddleware.run(this.initReduxSagaWarchers, this.config.redux.sagaWatchers, this.rpcClient); resolve(); }); return init; } - private * initReduxSagaWarchers(sagaWarchers: Class[], rpcClient: WebSocketRPC): SagaIterator { - for (let type of sagaWarchers) { + private * initReduxSagaWarchers(sagaWatchers: Class[], rpcClient: WebSocketRPC): SagaIterator { + for (let type of sagaWatchers) { let instance = Object.create(type.prototype); instance.constructor.call(instance);