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

[AppProvider] Provide a better way to override specific router configurations #4810

Open
apedroferreira opened this issue Mar 27, 2025 · 0 comments
Labels
enhancement This is not a bug, nor a new feature priority: low To delay as much as possible scope: toolpad-core Abbreviated to "core"

Comments

@apedroferreira
Copy link
Member

apedroferreira commented Mar 27, 2025

Summary

Right now, if someone using the NextAppProvider, for example, wants to override its Link component in order to add some of the Next.js transition options, they would need to create a whole custom router.

There should be a simple way to override a single property of the router, or at least the Link.

Motivation

The renderItem property for navigation page items added in #4809 provides a way to override the links, but only for those navigation items.

This option would provide a more elegant solution for this issue, at the application router level:
#4748 (comment)

Search keywords: app provider next react router navigation override custom

@apedroferreira apedroferreira added status: waiting for maintainer These issues haven't been looked at yet by a maintainer and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Mar 27, 2025
@github-actions github-actions bot added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Mar 27, 2025
@apedroferreira apedroferreira added scope: toolpad-core Abbreviated to "core" enhancement This is not a bug, nor a new feature priority: low To delay as much as possible and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This is not a bug, nor a new feature priority: low To delay as much as possible scope: toolpad-core Abbreviated to "core"
Projects
None yet
Development

No branches or pull requests

1 participant