apply suggestion from review

Co-authored-by: Rich Harris <rich.harris@vercel.com>
pull/16542/head
ComputerGuy 4 weeks ago committed by GitHub
parent 155e69c7b6
commit 88e4fb6528
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -15,11 +15,7 @@ export function AwaitExpression(node, context) {
// preserve context for
// a) top-level await and
// b) awaits that precede other expressions in template or `$derived(...)`
if (
tla ||
(is_reactive_expression(context) &&
(!is_last_evaluated_expression(context, node) || context.path.at(-1)?.type === 'ConstTag'))
) {
if (tla || (is_reactive_expression(context) && !is_last_evaluated_expression(context, node))) {
return b.call(b.await(b.call('$.save', argument)));
}

Loading…
Cancel
Save