MCPcopy Create free account
hub / github.com/plotly/dash / checkForNestedUpdates

Function checkForNestedUpdates

dash/deps/react-dom@18.3.1.js:27337–27352  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 {

Callers 1

scheduleUpdateOnFiberFunction · 0.70

Calls 1

errorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…