Trouble Implementing Nested Routes in a TailNext #44
Unanswered
EastTexasElectronics
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello NextJS Community,
I'm exploring NextJS using the TailNext template and am currently developing a project where I've run into challenges with nested routing. My aim is to configure the navigation for the 'Services' tab such that it expands into categories and then individual services (Services > Service_Category > Service). I suspect I might be missing something in my TypeScript definitions, particularly concerning
types.d.ts
.However, as I delved deeper, it appears the primary challenge may lie in how
global.data.tsx
manages nested routes. Below is the structure insrc\shared\data\global.data.tsx
for defining navigation links:src\shared\data\global.data.tsx
Header.tsx
src\shared\types.d.ts
Given this setup, I am looking for guidance on how to properly enable
global.data.tsx
to handle deeper nested routing. I am confident in getting the functionality to work withinHeader.tsx
once theglobal.data.tsx
setup is corrected.Any advice on adjusting
global.data.tsx
, enhancing the TypeScript definitions, or even examples of similar implementations would be greatly appreciated. Thank you in advance for your help!Beta Was this translation helpful? Give feedback.
All reactions