()
| 27335 | } |
| 27336 | |
| 27337 | function checkForNestedUpdates() { |
| 27338 | if (nestedUpdateCount > NESTED_UPDATE_LIMIT) { |
| 27339 | nestedUpdateCount = 0; |
| 27340 | rootWithNestedUpdates = null; |
| 27341 | throw new 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.'); |
| 27342 | } |
| 27343 | |
| 27344 | { |
| 27345 | if (nestedPassiveUpdateCount > NESTED_PASSIVE_UPDATE_LIMIT) { |
| 27346 | nestedPassiveUpdateCount = 0; |
| 27347 | rootWithPassiveNestedUpdates = null; |
| 27348 | |
| 27349 | error('Maximum update depth exceeded. This can happen when a component ' + "calls setState inside useEffect, but useEffect either doesn't " + 'have a dependency array, or one of the dependencies changes on ' + 'every render.'); |
| 27350 | } |
| 27351 | } |
| 27352 | } |
| 27353 | |
| 27354 | function flushRenderPhaseStrictModeWarningsInDEV() { |
| 27355 | { |
no test coverage detected
searching dependent graphs…