[✨] Nested named layout #164
motss
started this conversation in
Proposals For Qwik
Replies: 2 comments
-
|
@motss I don't understand, what is the use case? How should it detect what name to use? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
We moved this issue to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem?
Qwik supports named layout with the following folder structure:
However, it seems like it does not support nested named layout with the following folder structure:
In the above example, there are two layouts that apply themselves around the
/contact-1page component:src/routes/layout-narrow2.tsxsrc/routes/[email protected]We should be able to define the parent layout of a child layout in Qwik City like
[email protected]. However, as of[email protected],[email protected]does not work and/routes/contact/layout-narrow2.tsxis forced to always render with/routes/layout.tsx.Describe the solution you'd like
To be able to define a named layout for another named layout as Qwik currently supports only defining a named layout to
index.{tsx,mdx}instead of alayout.tsx, for instance,Expected behavior
We should be able to define named layout for layouts.
Actual behavior
We can only specify named layout in an
index.{tsx,mdx}file like[email protected]andlayout-narrow.tsxis always defaulting to alayout.tsxat upper level.Describe alternatives you've considered
Avoid using nested named layout
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions