Replies: 4 comments 3 replies
-
|
I've attempted to turn on the React Compiler this week, and yeah, there are definitely issues. So far I've definitely ran into the well-known issues with As far as I can see Anyways, it would be really great with some guidance and a migration guide of some sort here. We have for example a bunch of cases like |
Beta Was this translation helpful? Give feedback.
-
|
I have problems when using |
Beta Was this translation helpful? Give feedback.
-
|
Any updates regarding React Compiler support? |
Beta Was this translation helpful? Give feedback.
-
|
For anyone here who needs it, you can disable React Compiler granularly using the I wrap my forms in a special hook usually, and placing the directive in the hook function body fixes the issue for me: import { type UseFormProps, useForm } from 'react-hook-form';
function useFormCompat(props?: UseFormProps) {
// Disable react compiler until react-hook-form supports it.
// https://github.com/orgs/react-hook-form/discussions/12524
'use no memo';
return useForm(props);
}
export function Component() {
const form = useFormCompat();
return <>...</>
} |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Is it's safe to use today the react-hook-form library together with the react compiler ?
I saw already some recommendations to use useWatch instead of watch function, but there also seem to be issues with other functions as well, for example the getValues function.
Beta Was this translation helpful? Give feedback.
All reactions