Replies: 3 comments 7 replies
-
Facing the same issue, cannot get rid of the console error.
And the 'Controller' refers to this (FormField of shadcn Form element):
|
Beta Was this translation helpful? Give feedback.
-
in my case i remove the disabled prop from |
Beta Was this translation helpful? Give feedback.
-
So what's the recommended fix? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! I’m having this issue in a project I’m working on and I’m hoping someone can help me out.
Project uses React+shadcn+react-query. I have form with two fields.
Field two depends on field one - if field one changes, a http request is made inside field two that is enabled only when
fieldOne
has a value:The very first time
fieldOne
changes, I get a console warning:The form works, but this warning really bothers me. At first I had all code in one component and it worked, now I refactored and get an error.
I tried replicating the issue with just react-hook-form (sandbox), but I couldn't replicate console warning.
What could I do better here? TYIA
Beta Was this translation helpful? Give feedback.
All reactions