T
TanStack11mo ago
reduced-jade

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?
3 Replies
variable-lime
variable-lime11mo ago
can you please provide a minimal complete example?
reduced-jade
reduced-jadeOP11mo ago
@Manuel Schiller I like to know if there is a way, If I'm on a route like localhost/settings/id I like to be able to execute all layouts on the way, from root, and from settings.... Structure is like
_root.tsx
_layout.tsx
settings
_layout.tsx
$id.tsx
_root.tsx
_layout.tsx
settings
_layout.tsx
$id.tsx
variable-lime
variable-lime11mo ago
so what did you try already? as i wrote please provide a complete example

Did you find this page helpful?