have addEffect returns its effect

This commit is contained in:
Yanick Champoux 2021-10-18 16:11:51 -04:00
parent 541790425a
commit f51c8158fc

View File

@ -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) {