You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone, I have a question:
I've been using this pattern for dialogs/modal via tanstack router so far:
I basically have eg a route for a list of photos on
/photos/
and in addition a
/photos/1/modal
route.
For file based routing that looks like:
photos.tsx
(has anOutlet
)/photos/$photoID/modal.tsx
(this modal then gets rendered in theOutlet
ofphotos.tsx
But I just realized that in a case where I don't want the
/photos/
route this would work:_/photos/index.tsx
->/
the list of photos_/photos/$photoID/modal.tsx
->/1/modal
This wont work because now the Modal would not be rendered anymore in the
Outlet
in index.tsx but in__root.tsx
has someone a hint how I could solve that?
Beta Was this translation helpful? Give feedback.
All reactions