Could someone guide me on the best approach to achieve this in Next.js? #79955
Unanswered
SrushtiSanghani2003
asked this question in
App Router
Replies: 2 comments 1 reply
-
How are you doing your navigation? |
Beta Was this translation helpful? Give feedback.
0 replies
-
My navigation slug changes dynamically from the API. For example: community/slug1, community/slug2, and so on. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using dynamic routing in my Next.js project (e.g., /community/[slug]). When the slug in the URL changes—such as navigating from /community/a to /community/b—the entire page re-renders. I would like to prevent a full page re-render and instead just update the relevant content based on the new slug, ideally using client-side logic or state updates.
Beta Was this translation helpful? Give feedback.
All reactions