Is there a way to have a layout that doesn't get matched against? #60
Answered
by
kiliman
mmacdonaldOCP
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
kiliman
Jul 15, 2023
Replies: 1 comment 1 reply
-
Hi great question. Typically if you want a shared layout without making it an actual route, you'd add a pathless layout as a parent route.
Perhaps I could add a convention that would let you add a prefix like
That might be tricky since I would have to check for that before processing any child routes since they would have to be nested under the fake pathless layout. Anyway I hope I answered your question. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mmacdonaldOCP
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi great question. Typically if you want a shared layout without making it an actual route, you'd add a pathless layout as a parent route.
Perhaps I could add a convention that would let you add a prefix like
!
to say wrap this with a pathless layout.signup/!_layout.tsx
That might be tricky since I would have to check for that before processing any child routes since they would have to be nested under the fake pathless layout.
Anyway I hope I answered your question.