TanStackT
TanStack2y ago
13 replies
sad-indigo

Should all path params be required for relative navigation?

I have my routes setup like the following:

/customers/$customerId/ (customerRoute)
/customers/$customerId/orders/$orderId (customerOrderRoute)

When I try to navigate from the first route using a <Link from={customerRoute.fullPath} to="orders/$orderId" params={{orderId: "123"}}>, I'm getting an error that customerId is required.
Was this page helpful?