-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[examples] Improve integration examples with Next.js #27331
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.
Looks almost good! :)
@Harshita-Kanal I've polished the changes and verified that they fix both issues linked in the PR description. Let's update the I will apply the changes on our docs too in a separate PR. |
Thanks :) I will update the |
@mui-org/core I want to give a shout out to @Harshita-Kanal - she was one of the mentors on the Open Source Day and did a great job! 🙌 |
f10a6b1
to
9b1a2d0
Compare
I have rebased and push a couple of changes:
|
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.
@mnajdova Oops, I didn't test it, my bad, I got overconfident 😅. |
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.
Looks good! Can't spot any issues.
@egorguscha Did you try to load it locally? Looks like an issue on codeasndbox. Other examples can't be loaded too. |
Forking the codesandbox seems to work. Next.js has links to StackBlitz https://github.com/vercel/next.js/tree/canary/examples/custom-server-express#preview, it was added in vercel/next.js#25853. It seems to work with us https://stackblitz.com/github/mui-org/material-ui/tree/next/examples/nextjs-with-typescript. The advantage is the backend runs inside a web-worker, not a remote server, it's more reliable. @sulco maybe it's something you would be interested in adding? |
Sorry, for the late reply just need to fork it, but anyway all is right. Besides I would add example with tss-react and styled |
I'll do that, @oliviertassinari! |
Fixes #27045
Fixes #26957
Preview: https://deploy-preview-27331--material-ui.netlify.app/