Skip to content
Closed
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
2 changes: 1 addition & 1 deletion src/diff/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ export function diff(
}
} else {
newVNode._dom = oldVNode._dom;
newVNode._children = oldVNode._children;
newVNode._children = oldVNode._children || [];
Copy link
Member

@rschristian rschristian Jun 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
newVNode._children = oldVNode._children || [];
newVNode._children = oldVNode._children || EMPTY_ARR;

Will need to add it as an import tho, wish GH allowed users to suggest outside the diff.

Weird that the CI is failing. Edit: Ah, looks like we'll need to manually upload something to get the 10.x line working again.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would add a small comment here too on why we set it to a default value (e.g. point to prefresh issue)

}
options._catchError(e, newVNode, oldVNode);
}
Expand Down
Loading