Replies: 2 comments
-
You can use |
Beta Was this translation helpful? Give feedback.
0 replies
-
Still the boilerplace: const errors1 = useFormState({name: 'requiredSkills'}).errors.requiredSkills // repeating field name twice
const errors2 = useFormState({name: 'optionalSkills'}).errors.optionalSkills // ...
... Could be nicely reduced to: const errors1 = useFieldState('requiredSkills').errors // ^_^
const errors2 = useFieldState('optionalSkills').errors //
... |
Beta Was this translation helpful? Give feedback.
0 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.
-
Hey!
I'm writing a generic hook wrapping
useForm
:Typically one would access an error as
errors.something.anInputField
, but in my case I can't do that because I know nothing aboutName
. Is there a real-world implementation for mylookup
function?Beta Was this translation helpful? Give feedback.
All reactions