Attempt to make shouldComponentUpdate connect option compatible with redux connect(areOwnPropsEqual, etc.).
By exposing ownProps/stateProps to shouldComponentUpdate connect options.
Why?
The result of shouldComponentUpdate mainly controlled by API from shell and it's not possible to do via props, so I can't control optimisation per component instance.
Example:
In this example, AuthorizationTooltip children is not rendered if isPerformingAction() returns true.
In some cases I want children to be rendered, but I can't control it per component instance, only globally.
Attempt to make shouldComponentUpdate connect option compatible with redux connect(areOwnPropsEqual, etc.). By exposing ownProps/stateProps to shouldComponentUpdate connect options.
Why? The result of shouldComponentUpdate mainly controlled by API from shell and it's not possible to do via props, so I can't control optimisation per component instance.
Example: In this example, AuthorizationTooltip children is not rendered if
isPerformingAction()
returns true. In some cases I want children to be rendered, but I can't control it per component instance, only globally.After fix: Now, I can control optimisation with ownProps.