Skip to content

Commit

Permalink
docs: typo for use:enhance update function (#12384)
Browse files Browse the repository at this point in the history
  • Loading branch information
eltigerchino authored Jun 21, 2024
1 parent 434ce18 commit 97d1085
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/kit/src/runtime/app/forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function clone(element) {
* If nothing is returned, the fallback will be used.
*
* If this function or its return value isn't set, it
* - falls back to updating the `form` prop with the returned data if the action is one same page as the form
* - falls back to updating the `form` prop with the returned data if the action is on the same page as the form
* - updates `$page.status`
* - resets the `<form>` element and invalidates all data in case of successful submission with no redirect response
* - redirects in case of a redirect response
Expand Down
2 changes: 1 addition & 1 deletion packages/kit/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1999,7 +1999,7 @@ declare module '$app/forms' {
* If nothing is returned, the fallback will be used.
*
* If this function or its return value isn't set, it
* - falls back to updating the `form` prop with the returned data if the action is one same page as the form
* - falls back to updating the `form` prop with the returned data if the action is on the same page as the form
* - updates `$page.status`
* - resets the `<form>` element and invalidates all data in case of successful submission with no redirect response
* - redirects in case of a redirect response
Expand Down

0 comments on commit 97d1085

Please sign in to comment.