Skip to content

Commit 0b0b7b8

Browse files
committed
more
1 parent 8e7f6bf commit 0b0b7b8

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ import {
1111
untrack,
1212
increment_write_version,
1313
update_effect,
14+
reaction_sources,
15+
set_reaction_sources,
1416
check_dirtiness,
1517
untracking,
16-
is_destroying_effect,
17-
reaction_sources,
18-
set_reaction_sources
18+
is_destroying_effect
1919
} from '../runtime.js';
2020
import { equals, safe_equals } from './equality.js';
2121
import {
@@ -28,7 +28,6 @@ import {
2828
MAYBE_DIRTY,
2929
BLOCK_EFFECT,
3030
ROOT_EFFECT,
31-
EFFECT,
3231
EFFECT_IS_UPDATING
3332
} from '../constants.js';
3433
import * as e from '../errors.js';

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ export function set_active_reaction(reaction) {
8282
/** @type {null | Effect} */
8383
export let active_effect = null;
8484

85+
/** @param {null | Effect} effect */
86+
export function set_active_effect(effect) {
87+
active_effect = effect;
88+
}
89+
8590
/**
8691
* When sources are created within a derived, we record them so that we can safely allow
8792
* local mutations to these sources without the side-effect error being invoked unnecessarily.
@@ -96,11 +101,6 @@ export function set_reaction_sources(sources) {
96101
reaction_sources = sources;
97102
}
98103

99-
/** @param {null | Effect} effect */
100-
export function set_active_effect(effect) {
101-
active_effect = effect;
102-
}
103-
104104
/**
105105
* The dependencies of the reaction that is currently being executed. In many cases,
106106
* the dependencies are unchanged between runs, and so this will be `null` unless

0 commit comments

Comments
 (0)