Skip to content

Commit f511b1b

Browse files
committed
revert snapshot
1 parent b429eb6 commit f511b1b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import { effect, teardown } from './reactivity/effects.js';
1515
import { legacy_mode_flag } from '../flags/index.js';
1616
import { CTX_CONTAINS_TEARDOWN, CTX_DESTROYED } from './constants.js';
1717
import { define_property } from '../shared/utils.js';
18-
import { snapshot } from '../shared/clone.js';
1918

2019
/** @type {ComponentContext | null} */
2120
export let component_context = null;
@@ -197,7 +196,7 @@ export function pop(component) {
197196

198197
effect(() => {
199198
if (context_stack_item.f === CTX_CONTAINS_TEARDOWN) {
200-
context_stack_item.tp = snapshot(context_stack_item.s, true)
199+
context_stack_item.tp = { ...context_stack_item.s };
201200
}
202201
});
203202
}

0 commit comments

Comments
 (0)