chore: remove unused `EFFECT_IS_UPDATING` constant

pull/16317/head
Rich Harris 3 months ago
parent 140462374a
commit 67bcea157b

@ -18,8 +18,7 @@ export const EFFECT_TRANSPARENT = 1 << 16;
export const INSPECT_EFFECT = 1 << 17;
export const HEAD_EFFECT = 1 << 18;
export const EFFECT_PRESERVED = 1 << 19;
export const EFFECT_IS_UPDATING = 1 << 20;
export const USER_EFFECT = 1 << 21;
export const USER_EFFECT = 1 << 20;
export const STATE_SYMBOL = Symbol('$state');
export const LEGACY_PROPS = Symbol('legacy props');

@ -21,7 +21,6 @@ import {
BLOCK_EFFECT,
ROOT_EFFECT,
DISCONNECTED,
EFFECT_IS_UPDATING,
STALE_REACTION,
USER_EFFECT
} from './constants.js';
@ -94,7 +93,7 @@ export let source_ownership = null;
/** @param {Value} value */
export function push_reaction_value(value) {
if (active_reaction !== null && active_reaction.f & EFFECT_IS_UPDATING) {
if (active_reaction !== null) {
if (source_ownership === null) {
source_ownership = { reaction: active_reaction, sources: [value] };
} else {
@ -282,8 +281,6 @@ export function update_reaction(reaction) {
untracking = false;
read_version++;
reaction.f |= EFFECT_IS_UPDATING;
if (reaction.ac !== null) {
reaction.ac.abort(STALE_REACTION);
reaction.ac = null;
@ -368,8 +365,6 @@ export function update_reaction(reaction) {
source_ownership = previous_reaction_sources;
set_component_context(previous_component_context);
untracking = previous_untracking;
reaction.f ^= EFFECT_IS_UPDATING;
}
}

Loading…
Cancel
Save