How To Route Masking Properly With File Based Routing
I tried route masking using file based routes. Here are the routes
The first routes didn't work, The link navigate to the regular product page in
/product/$productId
.
Fortunately the second one is working, modal is open in /product/$productId
path, but somehow the products list is gone because it using the modal layout.
My expectaction was the modal open but the it stay the same layout where products index _pages.product.index.tsx
exist just like the example https://tanstack.com/router/v1/docs/framework/react/examples/location-masking. If it is possible how to do it the right way?
By the way i tried both routes with declarative and imperative aproach.
React TanStack Router Location Masking. Example | TanStack Router Docs
An example showing how to implement Location Masking. in React using TanStack Router.
2 Replies
other-emerald•7mo ago
fair-roseOP•7mo ago
can't wait for it, thanks for the information