#njs13.3 parallel/intercepting route file duplication?
7 messages · Page 1 of 1 (latest)
7 messages · Page 1 of 1 (latest)
in this example on intercepting/parallel routs
[feed]
├── (..)photo/[id]
│ └── page.tsx
└── layout.tsx
photo/[id]
├── page.tsx
└── layout.tsx
in the (..)photo/[id] directory as well as the root photo/[id] directory there are is a page.tsx. does this mean we need to duplicate the file? so the same file exists in two places?
I think you can import from the other so you don't need to duplicate code, just the structure (route)
ok yea thats the direction i was trying. although its just navigating me to that page without popping up a modal 🤷♂️