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