[App Router] calling router.push takes long to update the url
Unanswered
Yakutian Laika posted this in #help-forum
Yakutian LaikaOP
I have a
I tried to use
useEffect
hook that creates the a new URL based on the filters. After creating the URL I execute router.push(newURL)
and that takes a few seconds to reflect the change in the url bar.I tried to use
window.location.href
instead of router.push
but it stays in a loop of refreshes