props problem with react Compiler and "use client" #65910
-
|
Beta Was this translation helpful? Give feedback.
Answered by
lubieowoce
May 17, 2024
Replies: 2 comments 6 replies
-
(cross-posted from here: #65909 (comment)) I'm not sure what the problem is, the two strings seem equivalent: But either way, this is reproducible in the react compiler playground, which means it's a behavior of the React Compiler, and not something specific to Next.js. If there's a problem with that output, please file an issue in the React repo. |
Beta Was this translation helpful? Give feedback.
0 replies
-
if use two client components with react check this |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This was a bug in the react compiler, and it was fixed here a couple hours ago:
facebook/react#29141
I tested it, and your issue will be solved by upgrading to
babel-plugin-react-compiler@latest
.Please bear in mind that the compiler is experimental, being constantly worked on, and possibly changing by the hour. You should always check if your problem still exists on the latest version of the compiler before reporting it, because it may have been fixed already!