diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lustre.ffi.mjs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lustre.ffi.mjs b/src/lustre.ffi.mjs index 2ebb0a9..9abc107 100644 --- a/src/lustre.ffi.mjs +++ b/src/lustre.ffi.mjs @@ -104,8 +104,9 @@ export class App { // Each update can produce effects which must now be executed. while (this.#effects[0]) - this.#effects.shift()(this.dispatch, (name, data) => - this.emit(name, data) + this.#effects.shift()( + (msg) => this.dispatch(msg), + (name, data) => this.emit(name, data) ); // Synchronous effects will immediately queue a message to be processed. If |