Replies: 4 comments
-
|
I got the same, and these might help you: https://az.react.dev/learn/react-compiler#something-is-not-working-after-compilation |
Beta Was this translation helpful? Give feedback.
-
|
I noticed renaming the watch function to useWatch like this, seems to make it work again: const { watch: useWatch } = useForm<>();
const thisWayWatchWorks = useWatch("myField") |
Beta Was this translation helpful? Give feedback.
-
|
This is in development. See this alpha version of RHF version 8. |
Beta Was this translation helpful? Give feedback.
-
|
We have now moved away from |
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.
-
The
watchmethod doesn't work withreact-compilerin Next.js 15. The compiler seems to be memoizing the oldest value.We just learned it the hard way. Several bug reports came in. We had no issue what was causing it. I spent an entire day trying to pinpoint the issue. I went back to version
7.51.0one by one but to no avail.Then tried turning off new changes we had made in the last month. Would have never guessed it was
react-compilerin the end.Beta Was this translation helpful? Give feedback.
All reactions