Next.js Discord

Discord Forum

[App Router] calling router.push takes long to update the url

Unanswered
Yakutian Laika posted this in #help-forum
Open in Discord
Avatar
Yakutian LaikaOP
I have a 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

0 Replies