mirror of https://github.com/sveltejs/svelte
fix: support hydrating around `<noscript>` (#9953)
* add test * fix: support hydrating around `<noscript>` * changesetpull/10008/head
parent
bd34367660
commit
c0a357c262
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: support hydrating around `<noscript>`
|
@ -0,0 +1,2 @@
|
||||
<!--ssr:0--><noscript>JavaScript is required for this site.</noscript>
|
||||
<h1>Hello!</h1><p>Count: 0</p><!--ssr:0-->
|
@ -0,0 +1,9 @@
|
||||
<script>
|
||||
import { onMount } from "svelte";
|
||||
let count = 0;
|
||||
onMount(() => count++);
|
||||
</script>
|
||||
|
||||
<noscript>JavaScript is required for this site.</noscript>
|
||||
|
||||
<h1>Hello!</h1><p>Count: {count}</p>
|
Loading…
Reference in new issue