have addEffect returns its effect
This commit is contained in:
parent
541790425a
commit
f51c8158fc
@ -256,6 +256,7 @@ export class Updux<
|
|||||||
|
|
||||||
addEffect(action, effect) {
|
addEffect(action, effect) {
|
||||||
this.#effects = [...this.#effects, [action, effect]];
|
this.#effects = [...this.#effects, [action, effect]];
|
||||||
|
return effect;
|
||||||
}
|
}
|
||||||
|
|
||||||
splatSubscriber(store, inner, splatReaction) {
|
splatSubscriber(store, inner, splatReaction) {
|
||||||
|
Loading…
Reference in New Issue
Block a user