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•11mo ago
can you please provide a minimal complete example?
reduced-jadeOP•11mo 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
variable-lime•11mo ago
so what did you try already?
as i wrote please provide a complete example