formState from useFormContext != useFormState #10761
Unanswered
klesaulnier
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.
-
Hello,
In our project, we have some troubles with "isDirty" having an unexpected value, as if it was not up to date.
We are getting its value from "useFormState" to prevent all the form component from re rendering.
What is surprising is that if we get "isDirty" value from "useFormContext", the value is correct, but it makes all the form component re render, which is not ideal.
How is it possible useFormContext and useFormState are returning different values ?
Thank you
Kevin
Beta Was this translation helpful? Give feedback.
All reactions