How to type the onChange correctly when extract the handler #1834
Unanswered
lei-zhao-infinitusai
asked this question in
General
Replies: 0 comments
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.
-
Hello, I am trying tanstack form now. One generic question I have is all the tutorial is have the inline onChange with just one line to update the field value.
But if we have complex customized logic when some value get changed, we do want to extract the onChange callback to a function instead of just doing it inline. But how can I give correct call back function typescript type when it need
field?eg, for this one
I want to extract onChange function like this
Thanks for your help!
Beta Was this translation helpful? Give feedback.
All reactions