Skip to content

Commit 94415f0

Browse files
committed
null out from_async_derived in more places
1 parent cda99a1 commit 94415f0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/svelte/src/constants.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export const NAMESPACE_MATHML = 'http://www.w3.org/1998/Math/MathML';
4343
// can be ignored and we want to keep the validation for svelte-ignore in place
4444
export const IGNORABLE_RUNTIME_WARNINGS = /** @type {const} */ ([
4545
'await_waterfall',
46+
'await_reactivity_loss',
4647
'state_snapshot_uncloneable',
4748
'binding_property_non_reactive',
4849
'hydration_attribute_changed',

packages/svelte/src/internal/client/dom/blocks/boundary.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,8 +376,10 @@ export function capture(track = true) {
376376
set_active_effect(previous_effect);
377377
set_active_reaction(previous_reaction);
378378
set_component_context(previous_component_context);
379-
} else if (DEV) {
380-
set_from_async_derived(was_from_async_derived);
379+
}
380+
381+
if (DEV) {
382+
set_from_async_derived(track ? null : was_from_async_derived);
381383
}
382384

383385
// prevent the active effect from outstaying its welcome
@@ -416,6 +418,7 @@ function exit() {
416418
set_active_effect(null);
417419
set_active_reaction(null);
418420
set_component_context(null);
421+
if (DEV) set_from_async_derived(null);
419422
}
420423

421424
export function pending() {

0 commit comments

Comments
 (0)