pull/9698/head
Dominic Gannaway 3 years ago
parent 0d7ba6ab26
commit bb67f1cac7

@ -1396,9 +1396,7 @@ function if_block(anchor_node, condition_fn, consequent_fn, alternate_fn) {
} else if (current_hydration_fragment !== null) {
const comment_text = /** @type {Comment} */ (current_hydration_fragment?.[0])?.data;
if (
(!comment_text &&
// Can happen when a svelte:element that is turned into a void element has an if block inside
current_hydration_fragment[0] !== null) ||
!comment_text ||
(comment_text === 'ssr:if:true' && !result) ||
(comment_text === 'ssr:if:false' && result)
) {

Loading…
Cancel
Save