fix head duplication with binding present

pull/9124/head
gtmnayan 3 years ago
parent a1e60a3266
commit cfdc519aa2

@ -144,9 +144,13 @@ export default function ssr(component, options) {
? b` ? b`
let $$settled; let $$settled;
let $$rendered; let $$rendered;
let #previous_head = $$result.head;
do { do {
$$settled = true; $$settled = true;
// $$result.head is mutated by the literal expression
// need to reset it if we're looping back to prevent duplication
$$result.head = #previous_head;
${reactive_declarations} ${reactive_declarations}

Loading…
Cancel
Save