Skip to content

Commit 8e79026

Browse files
author
Dominus Vilicus
authored
add code to blocks
1 parent 8dab16b commit 8e79026

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/compiler/compile/render_ssr/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ export default function ssr(
147147
instance_javascript,
148148
...parent_bindings,
149149
css.code && b`$$result.css.add(#css);`,
150+
options.hash && b `$$result.registeredComponents.add('${options.hash}');`,
150151
main
151152
].filter(Boolean);
152153

@@ -162,7 +163,7 @@ export default function ssr(
162163
${component.fully_hoisted}
163164
164165
const ${name} = @create_ssr_component(($$result, $$props, $$bindings, $$slots) => {
165-
${options.hash ? `$$result.registeredComponents.add('${options.hash}');` : ''}${blocks}
166+
${blocks}
166167
});
167168
`;
168169

0 commit comments

Comments
 (0)