TanStackT
TanStack15mo ago
4 replies
instant-harlequin

apply upper level layouts to nested routes

Hi,

How can tanstack-router executes layouts from upper level strucure, when I navigate some nested route. For example:
_root.tsx (have _layout.tsx)
settings (index.tsx, settings folder also have _layout)
settings/$Id (I like both layouts from root and settings to be executed), but they are not executed.

How I can achieve this?
Was this page helpful?