add the augmentMiddlewareApi as part of the updux api
This commit is contained in:
parent
7f1bcbddef
commit
f206026087
10
src/Updux.js
10
src/Updux.js
@ -201,14 +201,16 @@ export class Updux {
|
||||
this.#localReactions = [...this.#localReactions, reaction];
|
||||
}
|
||||
|
||||
augmentMiddlewareApi(api) {
|
||||
return augmentMiddlewareApi(api, this.actions, this.selectors);
|
||||
}
|
||||
|
||||
subscribeTo(store, subscription) {
|
||||
const localStore = augmentMiddlewareApi(
|
||||
const localStore = this.augmentMiddlewareApi(
|
||||
{
|
||||
...store,
|
||||
subscribe: (subscriber) => this.subscribeTo(store, subscriber), // TODO not sure
|
||||
},
|
||||
this.actions,
|
||||
this.selectors,
|
||||
}
|
||||
);
|
||||
|
||||
const subscriber = subscription(localStore);
|
||||
|
Loading…
Reference in New Issue
Block a user