We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0752833 commit c6e8850Copy full SHA for c6e8850
packages/svelte/src/compiler/phases/3-transform/client/visitors/AwaitExpression.js
@@ -15,9 +15,9 @@ export function AwaitExpression(node, context) {
15
// preserve context for
16
// a) top-level await and
17
// b) awaits that precede other expressions in template or `$derived(...)`
18
-if (tla || (is_reactive_expression(context) && !is_last_evaluated_expression(context, node))) {
19
- return b.call(b.await(b.call('$.save', argument)));
20
-}
+ if (tla || (is_reactive_expression(context) && !is_last_evaluated_expression(context, node))) {
+ return b.call(b.await(b.call('$.save', argument)));
+ }
21
22
// in dev, note which values are read inside a reactive expression,
23
// but don't track them
0 commit comments