File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
packages/svelte/src/internal/client Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' svelte ' : patch
3+ ---
4+
5+ fix: avoid mutation validation for invalidate_inner_signals
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ import {
2929} from './constants.js' ;
3030import { flush_tasks } from './dom/task.js' ;
3131import { add_owner } from './dev/ownership.js' ;
32- import { mutate , set , source } from './reactivity/sources.js' ;
32+ import { internal_set , set , source } from './reactivity/sources.js' ;
3333import { destroy_derived , execute_derived , update_derived } from './reactivity/deriveds.js' ;
3434import * as e from './errors.js' ;
3535import { lifecycle_outside_component } from '../shared/errors.js' ;
@@ -960,11 +960,11 @@ export function invalidate_inner_signals(fn) {
960960 if ( ( signal . f & LEGACY_DERIVED_PROP ) !== 0 ) {
961961 for ( const dep of /** @type {Derived } */ ( signal ) . deps || [ ] ) {
962962 if ( ( dep . f & DERIVED ) === 0 ) {
963- mutate ( dep , null /* doesnt matter */ ) ;
963+ internal_set ( dep , dep . v ) ;
964964 }
965965 }
966966 } else {
967- mutate ( signal , null /* doesnt matter */ ) ;
967+ internal_set ( signal , signal . v ) ;
968968 }
969969 }
970970}
You can’t perform that action at this time.
0 commit comments