TanStackT
TanStack•14mo ago•
1 reply
dead-brown

How to Link to same route (dynamic) with different parameters?

In version 1.53.1 I was able to render <Link params={{accountId: '456'}} /> without to or from and have it build hrefs for:
- /accounts/$accountId
- /accounts/$accountId/posts/$postId
- ...

It would take the current location url and just replace the $accountId parameter to generate a new one...

Current: /accounts/123/posts/1
Generated: /accounts/456/posts/1

In version 1.91.2 after updating I am no longer able to achieve this 😦
Was this page helpful?