Hacker News new | past | comments | ask | show | jobs | submit login

Yeah I think what might be going on is a combination of Next.js switching to strict mode at some point, and React 17 hiding the double logs.

I’d never seen the behaviour before (but had never explicitly used strict mode - to be honest I didn’t know it existed!) and switching between React 17 and 18 was enough to make it happen, so I assumed that was the responsible change, but actually it’s a bit more subtle.

Thought it might be useful to share for people who are using Next.js anyway, as for me it just started happening when I created a new project with no explanation which led to me thinking I was losing it for a while, lol.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: