-
-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nested Layouts #346
Comments
This feature would be great to use in my current project. Currently, using the solution given here. Thank you! |
@Jearce Thanks for the comment! I'm busy with high prio things at the moment (e.g. bug/design fixes), but let me know if/when the current situation is getting too annoying for you. I'll then implement this. |
+1 to this DX enhancement and parallel |
FYI I'm still thinking about this. The design I will come up with may be quite different from what others are doing. Stay tuned. For (other) readers: feel free to further push for this by adding a comment here. |
The overall design is starting to crystalize. The Single Route File design will play a central role here. Stay tuned. As always, if this is urgent for someone, then definitely let me know! |
(I follow your request to comment, as I'm interested as well 😉) Switching to |
I'm in the same boat, was missing Vite, or at least more configurability with Remix and React alternatives. vite-plugin-ssr is definitely amazing though also missing some of Remix's simplicity 😇 |
For folks who need/want improved Nested Layouts, please PM on discord. |
I want to use this feature. What should I do? |
|
The state of Page should be preserved on navigation to a sibling route. If it's a navigation to a sibling route, only swap out the pageContext.nested[0] in the context, don't run the client-side render entry. |
Yes the |
Also interested – nested views using the |
This feature would simplify a lot of things in my projects ;) Looking forward for it. |
Thanks for the push. FYI it's slowy but surely creeping towards the top of the TODO list. Sponsoring much welcome to give it a signficant bump to the top. And, as always, feel free to let me know and elaborte when the workaround becomes painful. That definitely makes a difference in priority as well. |
Sound like a good idea to have this DX. Please support if possible. Thanks! |
Closing in favor of improved docs https://vike.dev/Layout#nested-layouts and upcoming uproved DX #1459 (including deep integration with data fetching tools). |
See https://vite-plugin-ssr.com/layouts#nested-layouts.
While the workaround works, its DX isn't ideal.
The text was updated successfully, but these errors were encountered: