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 2942e8b commit 741ba06Copy full SHA for 741ba06
packages/svelte/src/compiler/phases/3-transform/client/visitors/Fragment.js
@@ -48,7 +48,7 @@ export function Fragment(node, context) {
48
const is_single_child_not_needing_template =
49
trimmed.length === 1 &&
50
(trimmed[0].type === 'SvelteFragment' || trimmed[0].type === 'TitleElement');
51
- const has_await = context.state.init !== null && (node.metadata.has_await || false);
+ const has_await = context.path.at(-1)?.type !== 'Root' && node.metadata.has_await;
52
53
const template_name = context.state.scope.root.unique('root'); // TODO infer name from parent
54
const unsuspend = b.id('$$unsuspend');
0 commit comments