Skip to content

Commit 97d1085

Browse files
authored
docs: typo for use:enhance update function (#12384)
1 parent 434ce18 commit 97d1085

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/kit/src/runtime/app/forms.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function clone(element) {
5656
* If nothing is returned, the fallback will be used.
5757
*
5858
* If this function or its return value isn't set, it
59-
* - falls back to updating the `form` prop with the returned data if the action is one same page as the form
59+
* - falls back to updating the `form` prop with the returned data if the action is on the same page as the form
6060
* - updates `$page.status`
6161
* - resets the `<form>` element and invalidates all data in case of successful submission with no redirect response
6262
* - redirects in case of a redirect response

packages/kit/types/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1999,7 +1999,7 @@ declare module '$app/forms' {
19991999
* If nothing is returned, the fallback will be used.
20002000
*
20012001
* If this function or its return value isn't set, it
2002-
* - falls back to updating the `form` prop with the returned data if the action is one same page as the form
2002+
* - falls back to updating the `form` prop with the returned data if the action is on the same page as the form
20032003
* - updates `$page.status`
20042004
* - resets the `<form>` element and invalidates all data in case of successful submission with no redirect response
20052005
* - redirects in case of a redirect response

0 commit comments

Comments
 (0)