If I call via `useMatches` from /products/1234/a,' should each segment be returned as its own match?
When I invoke
useMatches
to access all of the matches associated with my current route, should Tanstack Router return all of the routes preceding my current route as well? Say I've navigate to /products/1234/a in the browser. In the array of routes returned by TRR, should I see one for each of these path segments plus layout routes? Right now, I'm not seeing route match for /products
in the array.1 Reply
continuing-cyan•15mo ago
depends on which routes exist. can you please post a minimal complete example by forking one of the existing examples on Stackblitz?