diff options
author | Hayleigh Thompson <me@hayleigh.dev> | 2023-08-20 07:20:24 +0100 |
---|---|---|
committer | Hayleigh Thompson <me@hayleigh.dev> | 2023-08-20 07:20:24 +0100 |
commit | 88b71b747490f97d4e123e908e66f461ab122e4a (patch) | |
tree | 7f4afbbcfbef9c53f6fd64a0eb2a1e94abd707c3 | |
parent | 68b8e8a7fb92b49e17db201ed84b1e9d60b461dd (diff) | |
download | lustre-88b71b747490f97d4e123e908e66f461ab122e4a.tar.gz lustre-88b71b747490f97d4e123e908e66f461ab122e4a.zip |
:bug: Fixed bug caused by rendering an element with a different tag than the initial root element.
-rw-r--r-- | lib/src/lustre.ffi.mjs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/src/lustre.ffi.mjs b/lib/src/lustre.ffi.mjs index 9181fd5..b0f4661 100644 --- a/lib/src/lustre.ffi.mjs +++ b/lib/src/lustre.ffi.mjs @@ -84,7 +84,7 @@ export class App { const node = this.#view(this.#state); const vdom = map(node, (msg) => this.dispatch(msg)); - morph(this.#root, vdom); + this.#root = morph(this.#root, vdom); } #tick() { |