Catch all route for showing a modal over existing pages #4996
trofe-doorloop
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I use TanStack router folder method (not programmatically).
I have the following scenario, I have core routes:
/home, /settings, /settings/preferences
- as you can see - also deep nested routes.And in my scenario, I want to show a modal in any such route - and over the page itself, not override, only if it ends with "/contact-info".
So for example if my
/settings/preferences
page show some inputs and checkboxes, and I browse to/settings/preferences/contact-info
-> it should show a dialog of contact info over the preferences page, without replacing it.So it seems like I should create route
$splat/contact-info
. But then it replace the screen. what should I do, in order to allow rendering the page matching the "$splat" for example "/home = $splat"?Beta Was this translation helpful? Give feedback.
All reactions