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 3ce5ee7 commit 509ca70Copy full SHA for 509ca70
‎packages/svelte/src/compiler/phases/2-analyze/visitors/ExpressionTag.js‎
@@ -22,7 +22,7 @@ export function ExpressionTag(node, context) {
22
* the subtree as dynamic. This is because if it's inlinable it will be inlined in the template
23
* directly making the whole thing actually static.
24
*/
25
- if (attribute_parent && !is_inlinable_expression(node, context.state.scope)) {
+ if (!attribute_parent || !is_inlinable_expression(node, context.state.scope)) {
26
// TODO ideally we wouldn't do this here, we'd just do it on encountering
27
// an `Identifier` within the tag. But we currently need to handle `{42}` etc
28
mark_subtree_dynamic(context.path);
0 commit comments