mirror of https://github.com/sveltejs/svelte
fix: recover when an unexpected node replaces a nested boundary comment (#18925)
Fixes #18924 --------- Co-authored-by: nimbly1 <258366730+nimbly1@users.noreply.github.com> Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>pull/18821/merge
parent
e5169f26c5
commit
5cbdd34374
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: recover when an unexpected node replaces a nested boundary comment during hydration
|
||||||
@ -0,0 +1,6 @@
|
|||||||
|
import { test } from '../../test';
|
||||||
|
|
||||||
|
// https://github.com/sveltejs/svelte/issues/18924
|
||||||
|
export default test({
|
||||||
|
expect_hydration_error: true
|
||||||
|
});
|
||||||
@ -0,0 +1 @@
|
|||||||
|
<div><p>inner</p></div>
|
||||||
@ -0,0 +1 @@
|
|||||||
|
<!--[--><!--[--><div><span></span><!--[--><p>inner</p><!--]--></div><!--]--><!--]-->
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
<svelte:boundary>
|
||||||
|
<div>
|
||||||
|
<svelte:boundary>
|
||||||
|
<p>inner</p>
|
||||||
|
{#snippet failed()}
|
||||||
|
<p>inner failed</p>
|
||||||
|
{/snippet}
|
||||||
|
</svelte:boundary>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{#snippet failed()}
|
||||||
|
<p>outer failed</p>
|
||||||
|
{/snippet}
|
||||||
|
</svelte:boundary>
|
||||||
Loading…
Reference in new issue