In the updating phase, when is static getDerivedStateFromProps() called?
During the updating phase, static getDerivedStateFromProps() is called before shouldComponentUpdate(). This method is invoked on every render, regardless of the cause, and allows a component to update its state based on changes in props. It receives the new props and current state, and returns an object to update state or null to indicate no update is needed.