DEV Community

Discussion on: Fixing Next.js router query param returning undefined on initial render

Collapse
 
codedog001 profile image
Mohit

I was stuck at this line:
if (!router.isReady) {
return;
}
for a lot of time, the page kept crashing. When I saw your code, it immedeately clicked in my mind, why not do the thing when router.isReady.
Thank you so much! It was lifesaver.

Collapse
 
deepcodes profile image
Deepankar Bhade

I am so glad for this.

This exactly why I wrote this blog. Awesome