Next.js Discord

Discord Forum

useRouter().push(url) behavior

Unanswered
Andalusian Hound posted this in #help-forum
Open in Discord
Avatar
Andalusian HoundOP
Is the push() method the same as if the user types the URL into the location bar? It seems to me that all it's doing is changing the location bar, but not actually GETting the url.

The documentation says Perform a client-side navigation... which sounds like the former to me, but I am not seeing that affect. What is the best way to do that?

0 Replies