T
TanStack•15mo ago
xenial-black

Correct method for setting search parameters

Is using the useNavigate method the correct way to set search parameters dynamically for when we want to stay on the same page? onChange={(ids) => { navigate({ to: '/', search: (s) => ({ ...s, selectedDeviceIds: ids as Number[] }) }) }}
2 Replies
conscious-sapphire
conscious-sapphire•15mo ago
yes
xenial-black
xenial-blackOP•15mo ago
Great thankyou 🙂

Did you find this page helpful?