DevTools not working after upgrade to v6? #2021
-
Isn't devtools compatible with v6? No changes in code (except I updated DevTools to 1.2.1) and I'm getting these error messages: Uncaught TypeError: formState.dirtyFields.has is not a function |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
@mortmoe i will release a new major version. forgot devTool. |
Beta Was this translation helpful? Give feedback.
-
Cool, I'll check it out. Made a quick codesandbox for the issue with reset. It seems like it works normally when I put the mui component inside controllers. Also setting defaultValue seems to have something to say, but notice in the sandbox what happens if I set the TextField defaultValue to {getValue('test3)} and then do reset. Everything seems ok but... if you submit the value is totally gone. Also I cannot figure out what happens in test4 if you remove ... seems to remove everything (as if I had forgotten to do register() instead of register). https://codesandbox.io/s/react-hook-form-reset-problem-9qzzj?file=/src/index.js |
Beta Was this translation helpful? Give feedback.
-
@bluebill1049 I did some more testing on this and created a new post: #2043 |
Beta Was this translation helpful? Give feedback.
@mortmoe i will release a new major version. forgot devTool.