-
Notifications
You must be signed in to change notification settings - Fork 66
Open
Description
When defining multiple _layout.tsx files in a parent-child folder structure (e.g., routes/_layout.tsx and routes/dashboard/_layout.tsx), the layouts are automatically nested, resulting in double-layered layouts instead of using only the child’s layout.
routes/
_layout.tsx // Parent layout
dashboard/
_layout.tsx // Child layout
index.tsx
the desired result: the index.tsx uses the closest child _layout.tsx
is there any workaround for this scenario?
Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels