Skip to content
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

[docs][nextjs] Migrate from deprecated "legacyBehavior" prop #44871

Merged

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Dec 27, 2024

I wanted to fix something else (simpler actually 😆) on the docs, but then I got stopped by:

SCR-20241228-bdui

I created vercel/next.js#74334 to fix the root problem.

Now, I don't know how fast Next.js reviews PR. If it's like us, it might not happen soon enough, I want this fixed now 😄. More importantly, using a prop (legacyBehavior) that has been flagged as legacy for over two years (proof https://nextjs.org/blog/next-13#breaking-changes) in the examples and docs is a redflag for developers that are looking to operate at the forefront of what's done best in the frontend space. Hence this PR.

It's going after point 1. in #38092. Once merged, we could then go after point 2.

Preview: https://deploy-preview-44871--material-ui.netlify.app/

This is tricky to test, there are so many pages and links, I suspect regressions are likely.

@oliviertassinari oliviertassinari added docs Improvements or additions to the documentation nextjs labels Dec 27, 2024
@oliviertassinari oliviertassinari changed the title [docs][nextjs] Migrate from deprecated prop [docs][nextjs] Migrate from deprecated "legacyBehavior" prop Dec 27, 2024
@mui-bot
Copy link

mui-bot commented Dec 27, 2024

Netlify deploy preview

https://deploy-preview-44871--material-ui.netlify.app/

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against 45a51e6

@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work regression A bug, but worse labels Dec 28, 2024
@zannager zannager requested a review from siriwatknp December 30, 2024 10:38
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Feb 4, 2025
@oliviertassinari oliviertassinari force-pushed the nextjs-remove-legacyBehavior branch from adcc13b to 944c155 Compare April 2, 2025 19:00
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Apr 2, 2025
@oliviertassinari oliviertassinari force-pushed the nextjs-remove-legacyBehavior branch 7 times, most recently from ba0888a to 4b5e880 Compare April 2, 2025 19:15
@oliviertassinari oliviertassinari force-pushed the nextjs-remove-legacyBehavior branch from 4b5e880 to 45a51e6 Compare April 2, 2025 19:18
@oliviertassinari oliviertassinari requested review from DiegoAndai and removed request for siriwatknp April 2, 2025 19:19
Copy link
Member

@DiegoAndai DiegoAndai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

cc: @mui/docs-infra

@oliviertassinari oliviertassinari merged commit 6fbfc62 into mui:master Apr 6, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work docs Improvements or additions to the documentation nextjs regression A bug, but worse
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants