Next.js Discord

Discord Forum

Next useRouter quick question!

Unanswered
Dwarf Hotot posted this in #help-forum
Open in Discord
Avatar
Dwarf HototOP
Hi everyone, I am new using next. I have an issue using useRouter to navite to a different page in my app, (with router.push()). I the app is making a GET request to the url, and that is not the intended behaviour, I will handle request through axios. I want to use router to send the query params to another part of my app, and handle the logic in a service for the request there, not to have next make a GET request in the middle. Is this some bug, or functionality that I quite grasp yet? Thanks in advance for any help/tips!

0 Replies