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.
e.effect_in_unowned_derived
1 parent b7625fd commit 64f078dCopy full SHA for 64f078d
packages/svelte/src/internal/client/reactivity/effects.js
@@ -25,7 +25,6 @@ import {
25
ROOT_EFFECT,
26
EFFECT_TRANSPARENT,
27
DERIVED,
28
- UNOWNED,
29
CLEAN,
30
EAGER_EFFECT,
31
HEAD_EFFECT,
@@ -49,10 +48,10 @@ import { without_reactive_context } from '../dom/elements/bindings/shared.js';
49
48
*/
50
export function validate_effect(rune) {
51
if (active_effect === null && active_reaction === null) {
52
- e.effect_orphan(rune);
53
- }
+ if (active_reaction === null) {
+ e.effect_orphan(rune);
+ }
54
55
- if (active_reaction !== null && (active_reaction.f & UNOWNED) !== 0 && active_effect === null) {
56
e.effect_in_unowned_derived();
57
}
58
0 commit comments