You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
When defining multiple
_layout.tsx
files in a parent-child folder structure (e.g.,routes/_layout.tsx
androutes/dashboard/_layout.tsx
), the layouts are automatically nested, resulting in double-layered layouts instead of using only the child’s layout.the desired result: the
index.tsx
uses the closest child_layout.tsx
is there any workaround for this scenario?
Thanks!
The text was updated successfully, but these errors were encountered: