mirror of https://github.com/sveltejs/svelte
fix: allow store as initial value for props in ssr (#12885)
parent
c09decec44
commit
33a159cd61
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: allow store as initial value for props in ssr
|
@ -0,0 +1,3 @@
|
|||||||
|
import { test } from '../../test';
|
||||||
|
|
||||||
|
export default test({});
|
@ -0,0 +1 @@
|
|||||||
|
1
|
@ -0,0 +1,7 @@
|
|||||||
|
<script lang="ts">
|
||||||
|
import { writable } from 'svelte/store';
|
||||||
|
const page = writable(1);
|
||||||
|
const { value = $page } = $props();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
{value}
|
Loading…
Reference in new issue