Skip to content

Commit e1440f3

Browse files
Update documentation/docs/20-core-concepts/30-form-actions.md
1 parent a7dcea1 commit e1440f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

documentation/docs/20-core-concepts/30-form-actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ To customise the behaviour, you can provide a `SubmitFunction` that runs immedia
390390
391391
You can use these functions to show and hide loading UI, and so on.
392392
393-
Note that if you return a callback, the default behavior mentioned above is not triggered. The simplest way to get it back is to call `update`. You can customize it by passing `reset: false` and/or `invalidateAll: false` to `update`, or customize it even more by manually reproducing parts of the `use:enhance` behavior with `applyAction`:
393+
If you return a callback, you override the default post-submission behavior. To get it back, call `update`, which accepts `invalidateAll` and `reset` parameters, or use `applyAction` on the result:
394394
395395
```svelte
396396
/// file: src/routes/login/+page.svelte

0 commit comments

Comments
 (0)