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
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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