Skip to content

Commit faea151

Browse files
fix: withForm now works without any props (#1194)
* 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>
1 parent 5a29a1b commit faea151

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/framework/react/reference/functions/createformhook.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ withForm: <TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync
9595

9696
**TSubmitMeta**
9797

98-
**TRenderProps** *extends* `Record`\<`string`, `unknown`\> = `Record`\<`string`, `never`\>
98+
**TRenderProps** *extends* `Record`\<`string`, `unknown`\> = \{\}
9999

100100
#### Parameters
101101

packages/react-form/src/createFormHook.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ export function createFormHook<
289289
TOnSubmitAsync extends undefined | FormAsyncValidateOrFn<TFormData>,
290290
TOnServer extends undefined | FormAsyncValidateOrFn<TFormData>,
291291
TSubmitMeta,
292-
TRenderProps extends Record<string, unknown> = Record<string, never>,
292+
TRenderProps extends Record<string, unknown> = {},
293293
>({
294294
render,
295295
props,

0 commit comments

Comments
 (0)