pull/15844/head
Rich Harris 2 months ago
parent 0752833dbd
commit c6e8850deb

@ -15,9 +15,9 @@ export function AwaitExpression(node, context) {
// preserve context for // preserve context for
// a) top-level await and // a) top-level await and
// b) awaits that precede other expressions in template or `$derived(...)` // b) awaits that precede other expressions in template or `$derived(...)`
if (tla || (is_reactive_expression(context) && !is_last_evaluated_expression(context, node))) { if (tla || (is_reactive_expression(context) && !is_last_evaluated_expression(context, node))) {
return b.call(b.await(b.call('$.save', argument))); return b.call(b.await(b.call('$.save', argument)));
} }
// in dev, note which values are read inside a reactive expression, // in dev, note which values are read inside a reactive expression,
// but don't track them // but don't track them

Loading…
Cancel
Save