Skip to content

Commit af2224e

Browse files
committed
tidy up
1 parent 2e49f7c commit af2224e

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ export const HEAD_EFFECT = 1 << 20;
2323
export const EFFECT_HAS_DERIVED = 1 << 21;
2424

2525
// Flags used for async
26-
export const IS_ASYNC = 1 << 22;
27-
export const REACTION_IS_UPDATING = 1 << 23;
28-
export const BOUNDARY_SUSPENDED = 1 << 24;
26+
export const REACTION_IS_UPDATING = 1 << 22;
27+
export const BOUNDARY_SUSPENDED = 1 << 23;
2928

3029
export const STATE_SYMBOL = Symbol('$state');
3130
export const STATE_SYMBOL_METADATA = Symbol('$state metadata');

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
DESTROYED,
77
DIRTY,
88
EFFECT_HAS_DERIVED,
9-
IS_ASYNC,
109
MAYBE_DIRTY,
1110
UNOWNED
1211
} from '../constants.js';
@@ -114,7 +113,7 @@ export function async_derived(fn) {
114113
// TODO we should probably null out active effect here,
115114
// rather than inside `restore()`
116115
}
117-
}, IS_ASYNC);
116+
});
118117

119118
return Promise.resolve(promise).then(() => value);
120119
}

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ import {
3636
MAYBE_DIRTY,
3737
EFFECT_HAS_DERIVED,
3838
BOUNDARY_EFFECT,
39-
IS_ASYNC,
4039
TEMPLATE_EFFECT
4140
} from '../constants.js';
4241
import { set } from './sources.js';
@@ -149,7 +148,7 @@ function create_effect(type, fn, sync, push = true) {
149148
effect.first === null &&
150149
effect.nodes_start === null &&
151150
effect.teardown === null &&
152-
(effect.f & (EFFECT_HAS_DERIVED | BOUNDARY_EFFECT | IS_ASYNC)) === 0;
151+
(effect.f & (EFFECT_HAS_DERIVED | BOUNDARY_EFFECT)) === 0;
153152

154153
if (!inert && !is_root && push) {
155154
if (parent_effect !== null) {

0 commit comments

Comments
 (0)