React's useEffect Firing Twice in Dev? The HMR Culprit and a Simple Check
March 9, 2024
A quick developer tip: If your React useEffect hook seems to run twice in Next.js development mode, Hot Module Reloading (HMR) might be the reason. Here's why and how to verify.
Loading...