Open chanm003 opened 4 months ago
As I type in the inputs, the DEV tool console updates, but there is an error initially when clicking on "Add Project"
I also has this problem on 7.51.1 , not on 7.51.0. Additionally if using nested fields the validatingFields looks like this:
rootprop deep.nested.prop
Then validatingfields look like:
{
rootprop: true,
prop: true, // should not be here
deep: {
nested: {
prop: true
}
}
}
Probably caused by https://github.com/react-hook-form/react-hook-form/pull/11624
Does this have anything to do with devtools? I do not use the devtools and get a similar error.
Does this have anything to do with devtools? I do not use the devtools and get a similar error.
Agreed, issue is not related to devtools, but rather to react-hook-form 7.51.1 and the error coming up in browser console.
@bluebill1049 could you please transfer back to react-hook-form issues? Thanks in advance!
When I remove a single line (Line 80) in my code sandbox, everything works:
<DevTool control={methods.control} />
Perhaps it is a coincidence? And the same error would occur with any child component? i.e.
<MyTodo control={methods.control} />
The warning started to occur in version: 7.51.1
. I'm using controller with MUI and I'm getting the following warning everywhere.
Warning: Cannot update a component (`DevTool`) while rendering a different component (`Controller`).
The warning is still in version: 7.51.3
Version Number
7.51.1
Codesandbox/Expo snack
https://codesandbox.io/p/sandbox/young-dust-9752gj?file=%2Fsrc%2FApp.js
Steps to reproduce
Expected behaviour
There should be no errors:
What browsers are you seeing the problem on?
No response
Relevant log output
No response
Code of Conduct