What would cause the nested routing to disregard the _layout.tsx file? #131
Replies: 1 comment
-
Yep. It was something simple. I forgot to export my layout component using |
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
-
I have just implemented my first few routes using the hybrid routes in
remix-flat-routes
. But for some reason, it seems to be ignoring the content of my_layout.tsx
file which is colocated to the route file.My current routes (via
npx remix routes
)My vite.config.ts (mostly borrowed from
epic-stack
):Do
_layout.tsx
files still follow the standardreact-router
layout syntax that requires an<Outlet />
where the child route would be rendered into?As an example, here is the content of my
routes/_public+/_layout.tsx
.For whatever reason, the
routes/_public+/_index.tsx
does not include the wrapping container fromroutes/_public+/_layout.tsx
.Apologies if I missed something from the documentation that offers a very simple solution.
Beta Was this translation helpful? Give feedback.
All reactions