We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug report
type Data = { user: { name: string; email: string; }; }; type RecursivePartial<T> = { [P in keyof T]?: T[P] extends (infer U)[] ? RecursivePartial<U>[] : T[P] extends object ? RecursivePartial<T[P]> : T[P]; }; <Form<Data, RecursivePartial<Data>> onSubmit={onSubmit}> {({ handleSubmit, form }) => { useEffect(() => { form.initialize({ user: { name: "aaa" } }); }, [form]); return ( <form onSubmit={handleSubmit}> <Field name="user.name" component="input" /> <Field name="user.email" component="input" /> </form> ); }} </Form>
form.initialize values type is Partial<Data>.
form.initialize
Partial<Data>
form.initialize values type should be RecursivePartial<Data>.
RecursivePartial<Data>
https://codesandbox.io/s/laughing-sound-fk5rz4?file=/src/Form.tsx
"final-form": "4.20.7", "react": "18.0.0", "react-dom": "18.0.0", "react-final-form": "6.5.9",
nothing.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Are you submitting a bug report or a feature request?
bug report
What is the current behavior?
form.initialize
values type isPartial<Data>
.What is the expected behavior?
form.initialize
values type should beRecursivePartial<Data>
.Sandbox Link
https://codesandbox.io/s/laughing-sound-fk5rz4?file=/src/Form.tsx
What's your environment?
Other information
nothing.
The text was updated successfully, but these errors were encountered: