We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9703a24 commit 9522cb2Copy full SHA for 9522cb2
packages/svelte/src/internal/client/runtime.js
@@ -28,7 +28,6 @@ import { old_values } from './reactivity/sources.js';
28
import {
29
destroy_derived_effects,
30
execute_derived,
31
- current_async_effect,
32
recent_async_deriveds,
33
update_derived
34
} from './reactivity/deriveds.js';
@@ -629,7 +628,11 @@ export function get(signal) {
629
628
update_derived(derived);
630
}
631
632
- if (is_updating_effect && effect_tracking() && (derived.f & CONNECTED) === 0) {
+ if (
+ is_updating_effect &&
633
+ (derived.f & CONNECTED) === 0 &&
634
+ (effect_tracking() || (active_effect !== null && (active_effect.f & BRANCH_EFFECT) !== 0))
635
+ ) {
636
reconnect(derived);
637
638
0 commit comments