When persistent props used in component and component have optimized shouldUpdate method to change only on change of props, there become a problem, if props are changed multiple times in one animation frame and last change is not really change, only replacement by the same props.
In this case, there are the same props in _oldProps and component.props also in the case, if during last render was props different. This can cause that the component will not be updated nevertheless it has new props different from props on last render.
When persistent props used in component and component have optimized
shouldUpdatemethod to change only on change of props, there become a problem, if props are changed multiple times in one animation frame and last change is not really change, only replacement by the same props.In this case, there are the same props in
_oldPropsandcomponent.propsalso in the case, if during last render was props different. This can cause that the component will not be updated nevertheless it has new props different from props on last render.