DEV Community

Discussion on: Why is useEffect Running Twice? The Complete Guide to React 19 Strict Mode and Effect Cleanup

Collapse
 
batatapro profile image
Batata

This is a terrible decision. Let's say I wrote React code that relies on UseEffect firing twice to work properly. Maybe by accident or ignorance. Now I push my code to production and suddently stops working in production and I have to spend a whole day debugging it.