Error AtlasError Documentation and Resolution

React maximum update depth exceeded

Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate.

React detected an infinite or deeply recursive update loop and stopped rendering to prevent the component from updating forever.

React error #185runtime
Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate.
  • A lifecycle method or effect updates state every time the component renders.
  • Derived state logic triggers another update unconditionally.
  • Two pieces of state or props keep causing each other to update in a loop.
  1. Guard state updates so they only run when values actually change.
  2. Review effects and lifecycle methods for unconditional setState calls.
  3. Break cyclic update chains between related state and props.
React Docs: Minified React error #185
React error #185 Maximum update depth exceeded: causes and fixes | Error Atlas