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