[Bug?]: Using layouts with route groups at root level causes hydration errors #1582
Closed
2 tasks done
Labels
bug
Something isn't working
Duplicates
Latest version
Current behavior 😯
I'm trying to create a layout
(base).tsx
at the root level for the route group(base)
with the following structure:Doing so causes a hydration error when rendering one of the pages in the
(base)
route group.Expected behavior 🤔
No hydration errors, and everything renders as expected.
Steps to reproduce 🕹
Steps:
Context 🔦
I want to create two different layouts for admin and non-admin pages. I want non-admin pages to be at the root-level, with admin pages under the
/admin
route.I've read through the documentation for SolidStart routing, but it doesn't seem to address this caveat, so I am unsure if this is a technical limitation or just an oversight.
Here are route structures I've tested:
Hydration error:
No hydration error, but no layout:
No hydration error with layout, but not root level:
Your environment 🌎
The text was updated successfully, but these errors were encountered: