How to tell if input is already registered #10926
Unanswered
MikulasLebowski
asked this question in
Q&A
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.
-
Is there a way to check if input is already registered?
When setting initial values in useEffect, the setValue cannot be used in a straight-forward way because apparently the inputs are not registered at that point. It works when I put setTimeout(..., 1) into the useEffect, but that is of course horrible way to do anything in react.
Is there a way to check if inputs were already registered with the form hook?
It would be amazing if you'd added something like "onInputsRegistered" callback option.
I cannot use "defaultValues".
Beta Was this translation helpful? Give feedback.
All reactions