You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
#252
Open
Gjoshi3107 opened this issue
Dec 9, 2021
· 5 comments
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.
at scheduleWork(node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:5653:5)
at enqueueSetState(node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:2175:5)
at setState(node_modules/react/cjs/react.production.min.js:12:369)
at componentDidUpdate(node_modules/@ptomasroos/react-native-multi-slider/MultiSlider.js:370:12)
at commitLifeCycles(node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:5005:24)
at Ml(node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:6457:13)
at Ml([native code])
at runWithPriority(node_modules/scheduler/cjs/scheduler.production.min.js:19:467)
at commitRoot(node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:6337:3)
at performSyncWorkOnRoot(node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:5990:3)
at Tl([native code])
at b(node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:1797:25)
at runWithPriority(node_modules/scheduler/cjs/scheduler.production.min.js:19:467)
at flushSyncCallbackQueueImpl(node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:1794:7)
at flushSyncCallbackQueue(node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:1786:3)
at batchedUpdatesImpl(node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:7569:41)
at batchedUpdates(node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:957:12)
at _receiveRootNodeIDEvent(node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:988:3)
at apply(node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:1022:5)
at __callFunction(node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:416:27)
at fn(node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:109:12)
at __guard(node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:364:9)
at value(node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:108:10)
at value([native code])
We are unable to reproduce it by following any specific steps.
But it is only occurring after we started implementing the Custom Marker so as to keep the new label as well.
Actual Behavior
Build is crashing due to max update depth exceeded.
The text was updated successfully, but these errors were encountered:
Usually this happens when you typing too fast and setting a field value in the state. The same here if you move the marker too fast. One technique to solve this is to use a debouncer.
I've encountered same issue and this happens when value props value contains null value and it causes app crash.
double check if values array contains null value like simple below
Issue:--
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.
at scheduleWork(node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:5653:5)
at enqueueSetState(node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:2175:5)
at setState(node_modules/react/cjs/react.production.min.js:12:369)
at componentDidUpdate(node_modules/@ptomasroos/react-native-multi-slider/MultiSlider.js:370:12)
at commitLifeCycles(node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:5005:24)
at Ml(node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:6457:13)
at Ml([native code])
at runWithPriority(node_modules/scheduler/cjs/scheduler.production.min.js:19:467)
at commitRoot(node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:6337:3)
at performSyncWorkOnRoot(node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:5990:3)
at Tl([native code])
at b(node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:1797:25)
at runWithPriority(node_modules/scheduler/cjs/scheduler.production.min.js:19:467)
at flushSyncCallbackQueueImpl(node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:1794:7)
at flushSyncCallbackQueue(node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:1786:3)
at batchedUpdatesImpl(node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:7569:41)
at batchedUpdates(node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:957:12)
at _receiveRootNodeIDEvent(node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:988:3)
at apply(node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:1022:5)
at __callFunction(node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:416:27)
at fn(node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:109:12)
at __guard(node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:364:9)
at value(node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:108:10)
at value([native code])
Code Used
Steps to Reproduce
We are unable to reproduce it by following any specific steps.
But it is only occurring after we started implementing the Custom Marker so as to keep the new label as well.
Actual Behavior
Build is crashing due to max update depth exceeded.
The text was updated successfully, but these errors were encountered: