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
When I try to specify validatorAdapter in createFormFactory props or formFactory.useForm props, I get these errors:
// createFormFactory Type '() => { validate({ value }: { value: unknown; }, fn: ZodType<any, ZodTypeDef, any>): ValidationError; validateAsync({ value }: { value: unknown; }, fn: ZodType<any, ZodTypeDef, any>): Promise<...>; }' is not assignable to type 'undefined'.ts(2322) // formFactory.useForm Type '() => { validate({ value }: { value: unknown; }, fn: ZodType<any, ZodTypeDef, any>): ValidationError; validateAsync({ value }: { value: unknown; }, fn: ZodType<any, ZodTypeDef, any>): Promise<...>; }' is not assignable to type 'undefined'.ts(2322)
https://stackblitz.com/edit/tanstack-form-vycsno
no type error
None
No response
WSL 2
react-form
0.13.6
5.3.3
The text was updated successfully, but these errors were encountered:
I created reproducable example, just use createFormFactory instead of usual form creation: https://stackblitz.com/edit/tanstack-form-vycsno
Sorry, something went wrong.
Good catch! For now, you can as never to ignore the problem (or something akin) as it should function, but we'll investigate and fix.
as never
Thanks for the detailed report!
Good catch! For now, you can as never to ignore the problem (or something akin) as it should function, but we'll investigate and fix. Thanks for the detailed report!
I dig a bit and find another way to solve this issue:
createFormFactory<Model, typeof zodValidator>
whoops I duped this :) #669
createFormFactory<FormData>
No branches or pull requests
Describe the bug
When I try to specify validatorAdapter in createFormFactory props or formFactory.useForm props, I get these errors:
Your minimal, reproducible example
https://stackblitz.com/edit/tanstack-form-vycsno
Steps to reproduce
Expected behavior
no type error
How often does this bug happen?
None
Screenshots or Videos
No response
Platform
WSL 2
Tanstack Form adapter
react-form
TanStack Form version
0.13.6
TypeScript version
5.3.3
Additional context
No response
The text was updated successfully, but these errors were encountered: