T
TanStack•4mo ago
adverse-sapphire

Problem with displaying child routes in the Outlet

Hi, I've ran into a problem, where my child routes instead of displaying in the place of the Outlet, just display as a whole new page. I have a dashboard and I want to display content of for e.g settings next to the sidebar, but instead the settings route displays without the sidebar. My file structure:
/dashboard
index.tsx - main dashboard component with a sidebar
settings.tsx - content that I want to display next to the sidebar
/dashboard
index.tsx - main dashboard component with a sidebar
settings.tsx - content that I want to display next to the sidebar
2 Replies
adverse-sapphire
adverse-sapphire•4mo ago
index and settings are both leaf routes. settings does not nest under index move the sidebar into /dashboard/route.tsx
adverse-sapphire
adverse-sapphireOP•4mo ago
Thank you so much! It works 🙂

Did you find this page helpful?