Skip to content

Commit 3345ed0

Browse files
committed
apply suggestion from review
1 parent ab91795 commit 3345ed0

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,3 @@ export const ELEMENT_NODE = 1;
4141
export const TEXT_NODE = 3;
4242
export const COMMENT_NODE = 8;
4343
export const DOCUMENT_FRAGMENT_NODE = 11;
44-
45-
export const VALID_EFFECT_PARENT = 0;
46-
export const EFFECT_ORPHAN = 1;
47-
export const UNOWNED_DERIVED_PARENT = 2;
48-
export const EFFECT_TEARDOWN = 3;

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,7 @@ import {
3333
EFFECT_PRESERVED,
3434
STALE_REACTION,
3535
USER_EFFECT,
36-
ASYNC,
37-
EFFECT_ORPHAN,
38-
EFFECT_TEARDOWN,
39-
UNOWNED_DERIVED_PARENT,
40-
VALID_EFFECT_PARENT
36+
ASYNC
4137
} from '#client/constants';
4238
import * as e from '../errors.js';
4339
import { DEV } from 'esm-env';
@@ -47,6 +43,11 @@ import { component_context, dev_current_component_function, dev_stack } from '..
4743
import { Batch, schedule_effect } from './batch.js';
4844
import { flatten } from './async.js';
4945

46+
const VALID_EFFECT_PARENT = 0;
47+
const EFFECT_ORPHAN = 1;
48+
const UNOWNED_DERIVED_PARENT = 2;
49+
const EFFECT_TEARDOWN = 3;
50+
5051
/**
5152
* If an effect can be created in the current context, `VALID_EFFECT_PARENT` is returned.
5253
* If not, a value indicating why is returned.

0 commit comments

Comments
 (0)