DEV Community

Discussion on: Share the Funniest Bug/Error Message You've Seen?

Collapse
 
mitchiemt11 profile image
Mitchell Mutandah

My browser crashed after an infinite loop in JavaScript. This was the Error:

Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.

😁 The funny part was that my browser continued to crash 💥 and I had to restart my pc up until I removed code causing the issue, only to realize that I was updating state inside render method