Skip to content

Commit

Permalink
fix: withForm now works without any props (#1194)
Browse files Browse the repository at this point in the history
* fix: withForm now works without any props

* ci: apply automated fixes and generate docs

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
  • Loading branch information
crutchcorn and autofix-ci[bot] authored Mar 1, 2025
1 parent 5a29a1b commit faea151
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/framework/react/reference/functions/createformhook.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ withForm: <TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync

**TSubmitMeta**

**TRenderProps** *extends* `Record`\<`string`, `unknown`\> = `Record`\<`string`, `never`\>
**TRenderProps** *extends* `Record`\<`string`, `unknown`\> = \{\}

#### Parameters

Expand Down
2 changes: 1 addition & 1 deletion packages/react-form/src/createFormHook.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ export function createFormHook<
TOnSubmitAsync extends undefined | FormAsyncValidateOrFn<TFormData>,
TOnServer extends undefined | FormAsyncValidateOrFn<TFormData>,
TSubmitMeta,
TRenderProps extends Record<string, unknown> = Record<string, never>,
TRenderProps extends Record<string, unknown> = {},
>({
render,
props,
Expand Down

0 comments on commit faea151

Please sign in to comment.