Dynamic loader layout without index #3434
-
I'm trying to write a layout for a dynamic route that does not have an index page, with paths like these:
So this means that:
I want to write a 'layout' that performs some data fetching at the First thing I tried to do was make routes like Something else I stumbled upon was using paths like I'm not really sure what else I can try, as I couldn't find any examples that share the same functionality that I'm aiming for. Maybe what I want to achieve simply isn't possible? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
This sounds like a bug in the router generator. can you please provide a complete minimal example? ideally by forking one of the existing examples in your case, I would create a |
Beta Was this translation helpful? Give feedback.
This sounds like a bug in the router generator. can you please provide a complete minimal example? ideally by forking one of the existing examples
in your case, I would create a
/session/$sessionId.tsx
as well as an explicit/session/$sessionId/index.tsx
./session/$sessionId.tsx
would contain the data fetching and in/session/$sessionId/index.tsx
I would throw anotFound
orredirect
in itsbeforeLoad()