Problem: When I try to update url by adding query params, page reloads.
.tsx
useEffect(() => {
requestResources()
requestPosts({})
}, [])
const handleSlideItemClick = (value: string) => {
history.push(`?resource=${value}`)
}
return (
Box py={16} px='8px'>
<SmoothSlider
list={resources.list}
name='resource'
onSelect={handleSlideItemClick}
/>
</Box>
)
Expectation: just update url by adding query params without page reload
I have also tried by <Link to={
?resource=&{someValue}}>
, result is same.