Catch all route for showing a modal over existing pages
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. But I might have many core ones.
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"?
0 Replies