diff options
Diffstat (limited to 'src/lustre.ffi.mjs')
-rw-r--r-- | src/lustre.ffi.mjs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lustre.ffi.mjs b/src/lustre.ffi.mjs index 4555277..95770e4 100644 --- a/src/lustre.ffi.mjs +++ b/src/lustre.ffi.mjs @@ -45,7 +45,7 @@ export class App { const [next, effects] = this.#init(flags); this.#state = next; - this.#effects = effects[0].toArray(); + this.#effects = effects.all.toArray(); this.#didUpdate = true; window.requestAnimationFrame(() => this.#tick()); @@ -101,7 +101,7 @@ export class App { // we don't need to trigger a re-render. this.#didUpdate ||= this.#state !== next; this.#state = next; - this.#effects = this.#effects.concat(effects[0].toArray()); + this.#effects = this.#effects.concat(effects.all.toArray()); } } |