From d1432856ce7def6fd3eedc80aa6e138ac52498ca Mon Sep 17 00:00:00 2001 From: Hayleigh Thompson Date: Sat, 4 Nov 2023 12:38:47 +0000 Subject: :bug: Fixed bug where ffi code was not using custom type label. --- src/lustre.ffi.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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()); } } -- cgit v1.2.3