You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 23, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 23, 2026. It is now read-only.
[NextAppProviderPages] Extend Navigate for NextAppProvider to include next/router/TransitionOptions like shallow, locale, scroll. #4748
When using DashboardLayout with NextAppProvider, NavigationPageItem could allow for extra props to be passed to nextjs router TransitionOptions to control shallow navigation and transition scroll behavior.
Examples
No response
Motivation
No response
Search keywords: next app pages router transition options shallow scroll
Other than that we're also adding a renderItem prop to navigation page items, so technically anything can be rendered in their place and any logic can be added.
Edit: Nevermind, I guess you would need to pass a whole custom router to NextAppProvider in that case. There should be a more straightforward way to do it.
Activity
apedroferreira commentedon Mar 27, 2025
Hi, have you tried using the
Linkproperty in therouterprop that gets passed to theNextAppProvider, and setting a custom link component there?You should be able to use a component kind of like:
Other than that we're also adding a
renderItemprop to navigation page items, so technically anything can be rendered in their place and any logic can be added.Edit: Nevermind, I guess you would need to pass a whole custom router to
NextAppProviderin that case. There should be a more straightforward way to do it.