Skip to content

Commit f2e61f6

Browse files
committed
fix
1 parent a63c757 commit f2e61f6

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@ export function await_block(node, get_input, pending_fn, then_fn, catch_fn) {
6161
var input_source = runes
6262
? source(/** @type {V} */ (undefined))
6363
: mutable_source(/** @type {V} */ (undefined), false, false);
64-
var error_source = runes
65-
? source(/** @type {V} */ (undefined))
66-
: mutable_source(/** @type {V} */ (undefined), false, false);
64+
var error_source = runes ? source(undefined) : mutable_source(undefined, false, false);
6765
var resolved = false;
6866

6967
/**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export function mutable_source(initial_value, immutable = false, trackable = tru
101101

102102
// bind the signal to the component context, in case we need to
103103
// track updates to trigger beforeUpdate/afterUpdate callbacks
104-
if (trackable && legacy_mode_flag && component_context !== null && component_context.l !== null) {
104+
if (legacy_mode_flag && trackable && component_context !== null && component_context.l !== null) {
105105
(component_context.l.s ??= []).push(s);
106106
}
107107

0 commit comments

Comments
 (0)