Answers for "react test 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."

0

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.

when handle event,change this.toggle() to this.toggle or {()=> this.toggle()}
Posted by: Guest on August-06-2020

Code answers related to "react test 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."

Code answers related to "TypeScript"

Browse Popular Code Answers by Language