diff options
author | Hayleigh Thompson <me@hayleigh.dev> | 2023-11-04 12:38:47 +0000 |
---|---|---|
committer | Hayleigh Thompson <me@hayleigh.dev> | 2023-11-04 12:38:47 +0000 |
commit | d1432856ce7def6fd3eedc80aa6e138ac52498ca (patch) | |
tree | 6568cedaaeb4181e87f9251a8bcf78431f17db09 | |
parent | 972051f79b06c06baf3b37ee3054b904c30e9124 (diff) | |
download | lustre-d1432856ce7def6fd3eedc80aa6e138ac52498ca.tar.gz lustre-d1432856ce7def6fd3eedc80aa6e138ac52498ca.zip |
:bug: Fixed bug where ffi code was not using custom type label.
-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()); } } |