address feedback

pull/11526/head
Dominic Gannaway 2 years ago
parent 0adc671718
commit 9028d46ccc

@ -167,8 +167,7 @@ export function hydrate(component, options) {
return instance;
}, false);
} catch (error) {
const skip_retry = DEV && '__skip_hydration_retry' in /** @type {Error} */ (error);
if (!hydrated && options.recover !== false && !skip_retry) {
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.

@ -258,12 +258,6 @@ function handle_error(error, effect, component_context) {
const effect_name = effect.fn.name;
if (effect_name) {
// If we have an effect name, it means it happened in the template, $effect or $effect.pre.
Object.defineProperty(error, '__skip_hydration_retry', {
value: true,
enumerable: false
});
component_stack.push(effect_name);
}

Loading…
Cancel
Save