Next.js Discord

Discord Forum

router.query.param is undefined when component first renders

Unanswered
Common carp posted this in #help-forum
Open in Discord
Common carpOP
Hi guys, I m facing a problem with param in next 12. When the component first renders, router.query.page is undefined although it exists on the url (http://localhost:3000/account?tab=0&status=ALL&page=10&). Can anyone help me explain why?

0 Replies