TanStackT
TanStack2y ago
5 replies
faint-white

File-based router open dialog in parent route

Hi, I'm trying to popup a dialog(/example/new) while keeping the parent content(/example) in the background, and I placed a <Outlet /> in the index.lazy.tsx,
but it not working, it just render the /example/new 's content.
What should I change to do so?

Here is my router file structure
example/
├─ index.lazy.tsx
├─ new.lazy.tsx
├─ $id.lazy.tsx
Was this page helpful?