mirror of https://github.com/sveltejs/svelte
fix: use `internal_set` in `await` block (#13642)
parent
440017d442
commit
372884cf99
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: use `internal_set` in `await` block
|
@ -0,0 +1,9 @@
|
||||
import { flushSync } from 'svelte';
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
compileOptions: {
|
||||
dev: true
|
||||
},
|
||||
test() {}
|
||||
});
|
@ -0,0 +1,9 @@
|
||||
<script>
|
||||
let count = $state(43);
|
||||
</script>
|
||||
|
||||
{#await count}
|
||||
loading
|
||||
{:then count}
|
||||
{count}
|
||||
{/await}
|
Loading…
Reference in new issue