Nested route group navigation
I have the following file-based structure:
I have a few questions:
1. How can I set a default tab to be navigated to? My current solution is to directly link to
2. How can I access the tab (and sub-tab) id? For example, when the user refreshes the page, I want to navigate them to that tab (and have it be shown as active). My current solution is to split
Thank you!
I have a few questions:
1. How can I set a default tab to be navigated to? My current solution is to directly link to
tab-a from /user/$id/route.tsx. I know there's a Navigate component and useNavigate but I'm not sure what's best practice.2. How can I access the tab (and sub-tab) id? For example, when the user refreshes the page, I want to navigate them to that tab (and have it be shown as active). My current solution is to split
location.pathname but it's not type-safe and it seems wonky.Thank you!