TanStackT
TanStack9mo ago
2 replies
capable-brown

Reading that route path is empty.

Have routing that is $ida/$idb .

I need to persist an item in the $ida route, but this item needs to access the current idb value to determine weather to make this item invisible or not. Which I normally do through
const idb= useParams({from: '/$ida/$idb/'}).idb;


However when I visit $ida page, it errors with Invariant failed: Could not find an active match from "/$ida/$ifb/"

I could get around this by turning idb into a query param, but ideally this should be a pathing thing. Any strategies to get $ida route to read that there is no $idb
Was this page helpful?