We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f1c3e4 commit 35bf9bbCopy full SHA for 35bf9bb
packages/svelte/src/internal/client/dom/hydration.js
@@ -113,7 +113,7 @@ export function capture_fragment_from_node(node) {
113
if (
114
node.nodeType === 8 &&
115
/** @type {Comment} */ (node).data === '[' &&
116
- hydrate_nodes[hydrate_nodes.length - 1] !== node
+ hydrate_nodes?.[hydrate_nodes.length - 1] !== node
117
) {
118
const nodes = /** @type {Node[]} */ (get_hydrate_nodes(node));
119
const last_child = nodes[nodes.length - 1] || node;
0 commit comments