Apply suggestions from code review

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
pull/10798/head
Rich Harris 2 years ago committed by GitHub
parent b2ca97171f
commit fa1b3a8686
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -91,6 +91,7 @@ export function if_block(anchor_node, condition_fn, consequent_fn, alternate_fn,
consequent_dom = block.d; consequent_dom = block.d;
if (mismatch) { if (mismatch) {
// Set fragment so that Svelte continues to operate in hydration mode
set_current_hydration_fragment([]); set_current_hydration_fragment([]);
} }
@ -124,6 +125,7 @@ export function if_block(anchor_node, condition_fn, consequent_fn, alternate_fn,
alternate_dom = block.d; alternate_dom = block.d;
if (mismatch) { if (mismatch) {
// Set fragment so that Svelte continues to operate in hydration mode
set_current_hydration_fragment([]); set_current_hydration_fragment([]);
} }

Loading…
Cancel
Save