|
|
@ -90,11 +90,6 @@ export function if_block(anchor, get_condition, consequent_fn, alternate_fn, els
|
|
|
|
consequent_fn(anchor);
|
|
|
|
consequent_fn(anchor);
|
|
|
|
consequent_dom = block.d;
|
|
|
|
consequent_dom = block.d;
|
|
|
|
|
|
|
|
|
|
|
|
if (mismatch) {
|
|
|
|
|
|
|
|
// Set fragment so that Svelte continues to operate in hydration mode
|
|
|
|
|
|
|
|
set_current_hydration_fragment([]);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return () => {
|
|
|
|
return () => {
|
|
|
|
// TODO make this unnecessary by linking the dom to the effect,
|
|
|
|
// TODO make this unnecessary by linking the dom to the effect,
|
|
|
|
// and removing automatically on teardown
|
|
|
|
// and removing automatically on teardown
|
|
|
@ -124,11 +119,6 @@ export function if_block(anchor, get_condition, consequent_fn, alternate_fn, els
|
|
|
|
alternate_fn(anchor);
|
|
|
|
alternate_fn(anchor);
|
|
|
|
alternate_dom = block.d;
|
|
|
|
alternate_dom = block.d;
|
|
|
|
|
|
|
|
|
|
|
|
if (mismatch) {
|
|
|
|
|
|
|
|
// Set fragment so that Svelte continues to operate in hydration mode
|
|
|
|
|
|
|
|
set_current_hydration_fragment([]);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return () => {
|
|
|
|
return () => {
|
|
|
|
// TODO make this unnecessary by linking the dom to the effect,
|
|
|
|
// TODO make this unnecessary by linking the dom to the effect,
|
|
|
|
// and removing automatically on teardown
|
|
|
|
// and removing automatically on teardown
|
|
|
@ -150,6 +140,11 @@ export function if_block(anchor, get_condition, consequent_fn, alternate_fn, els
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (mismatch) {
|
|
|
|
|
|
|
|
// Set fragment so that Svelte continues to operate in hydration mode
|
|
|
|
|
|
|
|
set_current_hydration_fragment([]);
|
|
|
|
|
|
|
|
}
|
|
|
|
}, block);
|
|
|
|
}, block);
|
|
|
|
|
|
|
|
|
|
|
|
if (elseif) {
|
|
|
|
if (elseif) {
|
|
|
|