Type of name prop on form.Field #684
Unanswered
ravilamichhane
asked this question in
Q&A
Replies: 2 comments 2 replies
-
There are going to be docs about how to do this prior to 1.x; I don't have any specific guidance here other than "Wish you the best" |
Beta Was this translation helpful? Give feedback.
0 replies
-
With I'd give this a try: interface TextInputProps<T> {
form: ReturnType<typeof useForm<T>>;
name: DeepKeys<T>;
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am migrating from react-hook-form to tanstack form.
I have a custom input component .
The code looked like this
And I am using it like this
This way i am getting suggestions on the editor based on the type of form for the name prop
But I am struggling to get this type of behaviour whith tanstack form. I tried to look at the type of the name property and i am lost. For now i have added any.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions