Skip to content

Commit 67bcea1

Browse files
committed
chore: remove unused EFFECT_IS_UPDATING constant
1 parent 1404623 commit 67bcea1

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

packages/svelte/src/internal/client/constants.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ export const EFFECT_TRANSPARENT = 1 << 16;
1818
export const INSPECT_EFFECT = 1 << 17;
1919
export const HEAD_EFFECT = 1 << 18;
2020
export const EFFECT_PRESERVED = 1 << 19;
21-
export const EFFECT_IS_UPDATING = 1 << 20;
22-
export const USER_EFFECT = 1 << 21;
21+
export const USER_EFFECT = 1 << 20;
2322

2423
export const STATE_SYMBOL = Symbol('$state');
2524
export const LEGACY_PROPS = Symbol('legacy props');

packages/svelte/src/internal/client/runtime.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import {
2121
BLOCK_EFFECT,
2222
ROOT_EFFECT,
2323
DISCONNECTED,
24-
EFFECT_IS_UPDATING,
2524
STALE_REACTION,
2625
USER_EFFECT
2726
} from './constants.js';
@@ -94,7 +93,7 @@ export let source_ownership = null;
9493

9594
/** @param {Value} value */
9695
export function push_reaction_value(value) {
97-
if (active_reaction !== null && active_reaction.f & EFFECT_IS_UPDATING) {
96+
if (active_reaction !== null) {
9897
if (source_ownership === null) {
9998
source_ownership = { reaction: active_reaction, sources: [value] };
10099
} else {
@@ -282,8 +281,6 @@ export function update_reaction(reaction) {
282281
untracking = false;
283282
read_version++;
284283

285-
reaction.f |= EFFECT_IS_UPDATING;
286-
287284
if (reaction.ac !== null) {
288285
reaction.ac.abort(STALE_REACTION);
289286
reaction.ac = null;
@@ -368,8 +365,6 @@ export function update_reaction(reaction) {
368365
source_ownership = previous_reaction_sources;
369366
set_component_context(previous_component_context);
370367
untracking = previous_untracking;
371-
372-
reaction.f ^= EFFECT_IS_UPDATING;
373368
}
374369
}
375370

0 commit comments

Comments
 (0)