Course contentsShow
React
Lesson 598 of 2,39616. useEffect for Data FetchingPro lesson

Why Your Effect Runs Twice on Mount

In StrictMode, effects run, cleanup, then run again—simulating a component unmount/remount cycle to test robustness.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.