T
TanStack•12mo ago
quickest-silver

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
foreign-sapphire
foreign-sapphire•12mo ago
yes
quickest-silver
quickest-silverOP•12mo ago
Great thankyou 🙂

Did you find this page helpful?