File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
packages/svelte/src/internal/client Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -771,11 +771,14 @@ export function get(signal) {
771771
772772 while ( parent !== null ) {
773773 if ( ( parent . f & DERIVED ) !== 0 ) {
774- target = /** @type {Derived } */ ( parent ) ;
775- parent = /** @type {Derived } */ ( parent . parent ) ;
774+ var parent_derived = /** @type {Derived } */ ( parent ) ;
775+
776+ target = parent_derived ;
777+ parent = parent_derived . parent ;
776778 } else {
777- if ( ! ( /** @type {Effect } */ ( parent ) . deriveds ?. includes ( target ) ) ) {
778- var parent_effect = /** @type {Effect } */ ( parent ) ;
779+ var parent_effect = /** @type {Effect } */ ( parent ) ;
780+
781+ if ( ! parent_effect . deriveds ?. includes ( target ) ) {
779782 ( parent_effect . deriveds ??= [ ] ) . push ( target ) ;
780783 }
781784 break ;
You can’t perform that action at this time.
0 commit comments