-
Notifications
You must be signed in to change notification settings - Fork 8
dev: enable the react compiler (and upgrade next) #1284
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
base: main
Are you sure you want to change the base?
Conversation
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.
need to enable eslint to catch things that would break the react-compiler in context-editor
| export const LinkMenu = ({ mark, onChange }: LinkMenuProps) => { | ||
| if (!(mark.type.name === "link")) { | ||
| return null; | ||
| } | ||
|
|
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.
can't early return if you use hooks
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.
Issue(s) Resolved
High-level Explanation of PR
Enables the react compiler!
Also adds a way to detect excessive refreshes through
react-scanThis can be disabled by turning it off in the bottom right, or by setting
REACT_SCAN_ENABLED=falseincore/.env.localTest Plan
Best way to test is to locally
pnpm -F core dev/compiler-demo(this page will be removed when this is merged).next.config.ts. setexperimental.reactCompiler: false.I also did the same in
storybook, bc that requires specific configuration.ill add a video tomorrow
Screenshots (if applicable)
Notes