using error with only have control object and without useContext #2026
Unanswered
mh-alahdadian
asked this question in
General
Replies: 2 comments 3 replies
-
@mha15 anything inside |
Beta Was this translation helpful? Give feedback.
2 replies
-
and also I would be happy to help you and make some PRs to you for new faster api |
Beta Was this translation helpful? Give feedback.
1 reply
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
Sometimes form is so big and we will break it down to more components , each of these component wants to interact with form
in v5 we need to use context to pass watch and control object and other
formMethods
downbut in v6 we can watch values with
useWatch
and so we don't need allformMethods
so we can just pass control object down and it have many of method and can interact with formmy question is that is there any way to watch errors and values in a component with only have control object?
I have this code on my component
It does work and it will give me latest errors after calling trigger but I wants to make sure that is it OK?
is
useWatch
re-render my component after calling trigger? or is there any warranty for re-rendering my component?should we have a
useErrors
hook as well?Beta Was this translation helpful? Give feedback.
All reactions