File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
packages/svelte/src/internal/client/reactivity Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -25,13 +25,11 @@ import {
2525} from '../runtime.js' ;
2626import { equals , safe_equals } from './equality.js' ;
2727import * as e from '../errors.js' ;
28- import * as w from '../warnings.js' ;
2928import { block , destroy_effect } from './effects.js' ;
3029import { inspect_effects , internal_set , set_inspect_effects , source } from './sources.js' ;
3130import { get_stack } from '../dev/tracing.js' ;
3231import { tracing_mode_flag } from '../../flags/index.js' ;
3332import { capture , suspend } from '../dom/blocks/boundary.js' ;
34- import { flush_boundary_micro_tasks } from '../dom/task.js' ;
3533
3634/**
3735 * @template V
@@ -97,10 +95,8 @@ export function async_derived(fn) {
9795 var promise = /** @type {Promise<V> } */ ( /** @type {unknown } */ ( undefined ) ) ;
9896 var value = source ( /** @type {V } */ ( undefined ) ) ;
9997
100- var derived_promise = derived ( fn ) ;
101-
10298 block ( async ( ) => {
103- var current = ( promise = get ( derived_promise ) ) ;
99+ var current = ( promise = fn ( ) ) ;
104100
105101 var restore = capture ( ) ;
106102 var unsuspend = suspend ( ) ;
You can’t perform that action at this time.
0 commit comments