Skip to content

Commit 993fff0

Browse files
authored
fix: tune hydrate mismatch logic to catch more cases (#12612)
1 parent c66d2cf commit 993fff0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/svelte/src/internal/client/render.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ export function hydrate(component, options) {
133133
const instance = _mount(component, { ...options, anchor });
134134

135135
if (
136+
hydrate_node === null ||
136137
hydrate_node.nodeType !== 8 ||
137138
/** @type {Comment} */ (hydrate_node).data !== HYDRATION_END
138139
) {

0 commit comments

Comments
 (0)