-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
meta: added million.js compiler (react) and updated packages #6475
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Lighthouse Results
|
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.
Also you should use the For
component.
it would certainly avoid this
Other point, you should add million in docs.
@@ -127,10 +133,13 @@ const sentryConfig = { | |||
// Next.js Configuration with `next.intl` enabled | |||
const nextWithIntl = withNextIntl('./i18n.tsx')(nextConfig); | |||
|
|||
// Enables Million.js React Compiler for Next.js | |||
const nextWithMillion = million.next(nextWithIntl, { auto: true, rsc: 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.
const nextWithMillion = million.next(nextWithIntl, { auto: true, rsc: true }); | |
const nextWithMillion = million.next(nextWithIntl, { | |
// support react server components | |
auto: { rsc: true }, | |
// We don't want to send telemetry data to Million | |
telemetry: false, | |
}); |
also strange behaviour search box is accessible by |
Well if this addition is not a drop-in placement then I don't think we should adopt the Million.js at the moment. I don't think that wrapping each iteration with this For component and other stuff is worth it. I don't want us to get dependent on yet another ecosystem. Im closing this |
ALSO, I assume this is the issue with Million.js duplicating and crashing: aidenybai/million#991 |
This PR adds the Million.js Compiler, which supposedly drastically reduces React's re-rendering times and complexity by "certain" bypasses of its reconciliation algorithm and another sort of magic.
This PR also updates all our packages to latest ✅ versions.