Skip to content

Commit 64f078d

Browse files
committed
chore: remove unowned check when calling e.effect_in_unowned_derived
1 parent b7625fd commit 64f078d

File tree

1 file changed

+3
-4
lines changed
  • packages/svelte/src/internal/client/reactivity

1 file changed

+3
-4
lines changed

packages/svelte/src/internal/client/reactivity/effects.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import {
2525
ROOT_EFFECT,
2626
EFFECT_TRANSPARENT,
2727
DERIVED,
28-
UNOWNED,
2928
CLEAN,
3029
EAGER_EFFECT,
3130
HEAD_EFFECT,
@@ -49,10 +48,10 @@ import { without_reactive_context } from '../dom/elements/bindings/shared.js';
4948
*/
5049
export function validate_effect(rune) {
5150
if (active_effect === null && active_reaction === null) {
52-
e.effect_orphan(rune);
53-
}
51+
if (active_reaction === null) {
52+
e.effect_orphan(rune);
53+
}
5454

55-
if (active_reaction !== null && (active_reaction.f & UNOWNED) !== 0 && active_effect === null) {
5655
e.effect_in_unowned_derived();
5756
}
5857

0 commit comments

Comments
 (0)