null out from_async_derived in more places

pull/15844/head
Rich Harris 3 months ago
parent cda99a1d54
commit 94415f0d96

@ -43,6 +43,7 @@ export const NAMESPACE_MATHML = 'http://www.w3.org/1998/Math/MathML';
// can be ignored and we want to keep the validation for svelte-ignore in place
export const IGNORABLE_RUNTIME_WARNINGS = /** @type {const} */ ([
'await_waterfall',
'await_reactivity_loss',
'state_snapshot_uncloneable',
'binding_property_non_reactive',
'hydration_attribute_changed',

@ -376,8 +376,10 @@ export function capture(track = true) {
set_active_effect(previous_effect);
set_active_reaction(previous_reaction);
set_component_context(previous_component_context);
} else if (DEV) {
set_from_async_derived(was_from_async_derived);
}
if (DEV) {
set_from_async_derived(track ? null : was_from_async_derived);
}
// prevent the active effect from outstaying its welcome
@ -416,6 +418,7 @@ function exit() {
set_active_effect(null);
set_active_reaction(null);
set_component_context(null);
if (DEV) set_from_async_derived(null);
}
export function pending() {

Loading…
Cancel
Save