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
Fortunately the second one is working, modal is open in
My expectaction was the modal open but the it stay the same layout where products index
By the way i tried both routes with declarative and imperative aproach.
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.
An example showing how to implement Location Masking. in React using TanStack Router.
