T
TanStack2y ago
modern-teal

Specifying `true` for some To Options

https://tanstack.com/router/v1/docs/framework/react/api/router/ToOptionsType In the link above, what does passing in true for hash and state do?
ToOptions type | TanStack Router Docs
The ToOptions type contains several properties that can be used to describe a router destination. `tsx
1 Reply
fair-rose
fair-rose2y ago
true means you want to keep the existing hash/state same as for search and params

Did you find this page helpful?