TeactN: Fix activation function call on mount
This commit is contained in:
parent
d84ab8456a
commit
0b40721ede
@ -266,9 +266,10 @@ export function withUntypedGlobal<OwnProps extends AnyLiteral>(
|
||||
containers.set(id, container);
|
||||
}
|
||||
|
||||
if (!container.mappedProps || (
|
||||
!arePropsShallowEqual(container.ownProps, props) && activateContainer(container, currentGlobal, props)
|
||||
)) {
|
||||
if (
|
||||
(!container.mappedProps || !arePropsShallowEqual(container.ownProps, props))
|
||||
&& activateContainer(container, currentGlobal, props)
|
||||
) {
|
||||
try {
|
||||
container.mappedProps = mapStateToProps(currentGlobal, props);
|
||||
} catch (err: any) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user