Skip to content

Commit 3e3d434

Browse files
Sync kit docs (#1598)
sync kit docs Co-authored-by: svelte-docs-bot[bot] <196124396+svelte-docs-bot[bot]@users.noreply.github.com>
1 parent 63fa14c commit 3e3d434

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/svelte.dev/content/docs/kit/20-core-concepts/60-remote-functions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,8 @@ We can customize what happens when the form is submitted with the `enhance` meth
758758
</form>
759759
```
760760
761+
> When using `enhance`, the `<form>` is not automatically reset — you must call `form.reset()` if you want to clear the inputs.
762+
761763
The callback receives the `form` element, the `data` it contains, and a `submit` function.
762764
763765
To enable client-driven [single-flight mutations](#form-Single-flight-mutations), use `submit().updates(...)`. For example, if the `getPosts()` query was used on this page, we could refresh it like so:

0 commit comments

Comments
 (0)