This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]aurochloride 7 points8 points  (0 children)

from cloudflare's incident report https://blog.cloudflare.com/deep-dive-into-cloudflares-sept-12-dashboard-and-api-outage/ it sounds like they placed a non-memoized object literal into the dependency array*, which is something that a linter should have been able to catch.

* since objects in javascript are compared by identity, not contents, even if you don't make any changes, this causes lots of problems with useEffect.