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) {
771
771
772
772
while ( parent !== null ) {
773
773
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 ;
776
778
} 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 ) ) {
779
782
( parent_effect . deriveds ??= [ ] ) . push ( target ) ;
780
783
}
781
784
break ;
You can’t perform that action at this time.
0 commit comments