pull/11526/head
Dominic Gannaway 2 years ago
parent 9028d46ccc
commit 59711592ea

@ -167,7 +167,11 @@ export function hydrate(component, options) {
return instance;
}, false);
} catch (error) {
if (!hydrated && options.recover !== false && /** @type {Error} */ (error).message.includes('hydration_missing_marker_close')) {
if (
!hydrated &&
options.recover !== false &&
/** @type {Error} */ (error).message.includes('hydration_missing_marker_close')
) {
w.hydration_mismatch();
// If an error occured above, the operations might not yet have been initialised.

Loading…
Cancel
Save