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

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 "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. functional"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language