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

View File

@ -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<SagaWatcher>[], rpcClient: WebSocketRPC): SagaIterator {
for (let type of sagaWarchers) {
private * initReduxSagaWarchers(sagaWatchers: Class<SagaWatcher>[], rpcClient: WebSocketRPC): SagaIterator {
for (let type of sagaWatchers) {
let instance = Object.create(type.prototype);
instance.constructor.call(instance);