Simplifying Dynamic Routes in Next.js App Router #80825
Unanswered
Awais-Asghar
asked this question in
App Router
Replies: 0 comments
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 really like how the new App Router handles nested layouts and dynamic segments, but I feel like there's room for improvement when dealing with deeply nested dynamic routes.
For example, building paths manually with multiple [slug] or [id] folders can become repetitive and error-prone. It would be great if Next.js provided something like a generatePath() utility, similar to React Router, to compose dynamic URLs based on route patterns.
Curious to know how others are managing this. Any suggestions, tips, or improvements you’ve found?
Beta Was this translation helpful? Give feedback.
All reactions