|
1 | | -/** @import { Effect, Source, TemplateNode } from '#client' */ |
2 | | -import { DEV } from 'esm-env'; |
| 1 | +/** @import { Source, TemplateNode } from '#client' */ |
3 | 2 | import { is_promise } from '../../../shared/utils.js'; |
4 | | -import { block, branch, pause_effect, resume_effect } from '../../reactivity/effects.js'; |
| 3 | +import { block } from '../../reactivity/effects.js'; |
5 | 4 | import { internal_set, mutable_source, source } from '../../reactivity/sources.js'; |
6 | | -import { set_active_effect, set_active_reaction } from '../../runtime.js'; |
7 | 5 | import { |
8 | 6 | hydrate_next, |
9 | | - hydrate_node, |
10 | 7 | hydrating, |
11 | 8 | skip_nodes, |
12 | 9 | set_hydrate_node, |
13 | 10 | set_hydrating |
14 | 11 | } from '../hydration.js'; |
15 | 12 | import { queue_micro_task } from '../task.js'; |
16 | | -import { HYDRATION_START_ELSE, UNINITIALIZED } from '../../../../constants.js'; |
17 | | -import { |
18 | | - component_context, |
19 | | - dev_stack, |
20 | | - is_runes, |
21 | | - set_component_context, |
22 | | - set_dev_current_component_function, |
23 | | - set_dev_stack |
24 | | -} from '../../context.js'; |
| 13 | +import { HYDRATION_START_ELSE } from '../../../../constants.js'; |
| 14 | +import { is_runes } from '../../context.js'; |
25 | 15 | import { flushSync, is_flushing_sync } from '../../reactivity/batch.js'; |
26 | 16 | import { BranchManager } from './branches.js'; |
27 | 17 | import { capture, unset_context } from '../../reactivity/async.js'; |
@@ -142,6 +132,8 @@ export function await_block(node, get_input, pending_fn, then_fn, catch_fn) { |
142 | 132 | set_hydrating(true); |
143 | 133 | } |
144 | 134 |
|
145 | | - return () => (destroyed = true); |
| 135 | + return () => { |
| 136 | + destroyed = true; |
| 137 | + }; |
146 | 138 | }); |
147 | 139 | } |
0 commit comments