fix: tune hydrate mismatch logic to catch more cases

pull/12612/head
Dominic Gannaway 2 years ago
parent beea5c3772
commit bdcbb53966

@ -133,6 +133,7 @@ export function hydrate(component, options) {
const instance = _mount(component, { ...options, anchor }); const instance = _mount(component, { ...options, anchor });
if ( if (
hydrate_node === null ||
hydrate_node.nodeType !== 8 || hydrate_node.nodeType !== 8 ||
/** @type {Comment} */ (hydrate_node).data !== HYDRATION_END /** @type {Comment} */ (hydrate_node).data !== HYDRATION_END
) { ) {

Loading…
Cancel
Save