Skip to content

Commit 9028d46

Browse files
committed
address feedback
1 parent 0adc671 commit 9028d46

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,7 @@ export function hydrate(component, options) {
167167
return instance;
168168
}, false);
169169
} catch (error) {
170-
const skip_retry = DEV && '__skip_hydration_retry' in /** @type {Error} */ (error);
171-
if (!hydrated && options.recover !== false && !skip_retry) {
170+
if (!hydrated && options.recover !== false && /** @type {Error} */ (error).message.includes('hydration_missing_marker_close')) {
172171
w.hydration_mismatch();
173172

174173
// If an error occured above, the operations might not yet have been initialised.

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -258,12 +258,6 @@ function handle_error(error, effect, component_context) {
258258
const effect_name = effect.fn.name;
259259

260260
if (effect_name) {
261-
// If we have an effect name, it means it happened in the template, $effect or $effect.pre.
262-
Object.defineProperty(error, '__skip_hydration_retry', {
263-
value: true,
264-
enumerable: false
265-
});
266-
267261
component_stack.push(effect_name);
268262
}
269263

0 commit comments

Comments
 (0)