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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

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 adcc13b

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.

2 participants