File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
packages/svelte/src/internal/client Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ import { effect, teardown } from './reactivity/effects.js';
1515import { legacy_mode_flag } from '../flags/index.js' ;
1616import { CTX_CONTAINS_TEARDOWN , CTX_DESTROYED } from './constants.js' ;
1717import { define_property } from '../shared/utils.js' ;
18- import { snapshot } from '../shared/clone.js' ;
1918
2019/** @type {ComponentContext | null } */
2120export 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 }
You can’t perform that action at this time.
0 commit comments