-
Notifications
You must be signed in to change notification settings - Fork 47k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[rcr] Reexport React.__COMPILER_RUNTIME.c or fallback to polyfill #31051
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
// This symbol is added to tell the react devtools that this array is from | ||
// useMemoCache. | ||
// @ts-ignore | ||
$[$empty] = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we put this in __DEV__
? not sure if this affects the JIT by changing the hidden class or not
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm probably wouldn't hurt but im not sure if this gets called enough for hidden classes to kick in?
Stack from ghstack (oldest at bottom):
This PR updates the standalone
react-compiler-runtime
package toeither re-export
React.__COMPILER_RUNTIME.c
or to use a userspacepolyfill.