Skip to content

Commit 3f4865e

Browse files
sync kit docs
1 parent 19bc530 commit 3f4865e

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)