Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ request to fix it.
- [lustre/element] Fixed a bug where a top-level fragment would not be hydrated correctly.
- [lustre/element/keyed] Fixed a bug where keyed elements were not virtualised correctly.
- [lustre/server_component] Fixed a bug where empty `value` attributes would result in a value of `undefined`
- [lustre/server_component] Fixed a bug where events inside fragments would not work.

## [v5.2.1] - 2025-06-23

Expand Down
5 changes: 4 additions & 1 deletion src/lustre/vdom/reconciler.ffi.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// IMPORTS ---------------------------------------------------------------------

import {
advance,
element_kind,
text_kind,
fragment_kind,
Expand Down Expand Up @@ -449,6 +448,10 @@ const iterate = (list, callback) => {
}
};

const advance = (vnode) => {
return 1 + (vnode.children_count|0);
}

const appendChild = (node, child) => node.appendChild(child);
const insertBefore = (parent, node, referenceNode) =>
parent.insertBefore(node, referenceNode ?? null);
Expand Down