-
-
Notifications
You must be signed in to change notification settings - Fork 283
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
[PageContainer] Make PageContainer customizable for dynamic routes #4114
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.
Great feature addition! Intuitive to use for the most part.
I think we could benefit greatly from a code snippet or demo showcasing how useActivePage
could be used in a Next.js app with the next/navigation
primitives. Does it make sense to add one on this page itself, or a separate page to document useActivePage
?
Added a snippet to the docs on how this would integrate with the next.js app router |
Closes #4100
Adds a
title
andbreadCrumbs
override. Also supplies auseActivePage
to retrieve the current value fortitle
andbreadCrumbs
so they can be extended.https://deploy-preview-4114--mui-toolpad-docs.netlify.app/toolpad/core/react-page-container/#dynamic-routes