We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63b2af1 commit 32f923eCopy full SHA for 32f923e
packages/kit/test/apps/options-2/src/routes/remote/+page.svelte
@@ -3,6 +3,7 @@
3
4
let count = $state(null);
5
let prerendered_result = $state(null);
6
+ const form = set_count_form();
7
</script>
8
9
<p id="count">{count}</p>
@@ -12,7 +13,7 @@
12
13
<button onclick={async () => (count = await set_count(0))} id="reset-btn">reset</button>
14
15
<form
- {...set_count_form.enhance(async ({ submit }) => {
16
+ {...form.enhance(async ({ submit }) => {
17
await submit().updates(get_count());
18
count = await get_count();
19
})}
0 commit comments