TanStackT
TanStack8mo ago
14 replies
exclusive-coral

Avoiding duplicate routing

Take the following routing example:
posts/$postId
posts/$postId/meta
posts/$postId/settings
posts/$postId/content
posts/new
posts/new/meta
posts/new/settings
posts/new/content

How would I avoid having practically duplicated routes while keeping the ability to differ from the layout in some cases for either new/existing entities?
Was this page helpful?