Last month, Cloudflare—the company that protects websites from attacks—accidentally broke its own system.
And guess who caused it?
👉 A small React useEffect hook. 😅
They put an object inside the dependency array.
That object kept changing every time React refreshed the page.
React thought, “Something changed again!” and ran the code again.
Then again.
And again.
💣 Boom—millions of API calls later, Cloudflare’s dashboard stopped working.
Yes… The DDoS protector ended up DDoS-attacking itself! 😂
Lesson:
useEffect may seem simple, but a small mistake can break everything. 🌍🔥
Next time you write one, double-check your dependencies—before they check you. 😎
Because if it’s not handled properly…
👑 useEffect will become the King of Bugs! 🐛😂
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)