mirror of https://github.com/sveltejs/svelte
fix: update_branch with (anchor).data possible undefined on ios devices (#15851)
* fix: update_branch with (anchor).data possible undefined * error sooner * add tests * changeset --------- Co-authored-by: Rich Harris <rich.harris@vercel.com>pull/15939/head
parent
17a7cf51e4
commit
a5a0b49003
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: handle more hydration mismatches
|
@ -0,0 +1,6 @@
|
|||||||
|
import { test } from '../../test';
|
||||||
|
|
||||||
|
// https://github.com/sveltejs/svelte/issues/15819
|
||||||
|
export default test({
|
||||||
|
expect_hydration_error: true
|
||||||
|
});
|
@ -0,0 +1 @@
|
|||||||
|
<p>start</p><p>cond</p><!---->
|
@ -0,0 +1 @@
|
|||||||
|
<!--[--> <p>start</p><!--[--><p>cond</p><!--]--><!--]-->
|
@ -0,0 +1,5 @@
|
|||||||
|
<script>
|
||||||
|
const cond = true;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<p>start</p>{#if cond}<p>cond</p>{/if}
|
@ -0,0 +1,6 @@
|
|||||||
|
import { test } from '../../test';
|
||||||
|
|
||||||
|
// https://github.com/sveltejs/svelte/issues/15819
|
||||||
|
export default test({
|
||||||
|
expect_hydration_error: true
|
||||||
|
});
|
@ -0,0 +1 @@
|
|||||||
|
<p>start</p> pre123 mid<!---->
|
@ -0,0 +1 @@
|
|||||||
|
<!--[--><p>start</p>pre<a>123</a> <!--[-->mid<!--]--><!--]-->
|
@ -0,0 +1,9 @@
|
|||||||
|
<script>
|
||||||
|
let cond = true;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<p>start</p>
|
||||||
|
pre123
|
||||||
|
{#if cond}
|
||||||
|
mid
|
||||||
|
{/if}
|
Loading…
Reference in new issue