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 646bed3 commit 144c2a5Copy full SHA for 144c2a5
src/routes/(v1)/reset/+page.svelte
@@ -10,7 +10,7 @@
10
11
let resets = 0;
12
13
- const superF: SuperForm<z.infer<typeof schema>> = superForm(data.form, {
+ const superform: SuperForm<z.infer<typeof schema>> = superForm(data.form, {
14
// eslint-disable-next-line svelte/valid-compile
15
resetForm: $page.url.searchParams.has('function')
16
? () => {
@@ -23,10 +23,7 @@
23
}
24
});
25
26
- $: form = superF.form;
27
- $: enhance = superF.enhance;
28
- $: errors = superF.errors;
29
- $: reset = superF.reset;
+ const { form, enhance, errors, reset } = superform;
30
31
function resetForm() {
32
console.log('Reset!');
0 commit comments