sagaWatchers incorrect spell
This commit is contained in:
parent
ac6a44d2ef
commit
9c0f27b9a2
|
@ -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,
|
||||
],
|
||||
};
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user