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);
|
containers.set(id, container);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!container.mappedProps || (
|
if (
|
||||||
!arePropsShallowEqual(container.ownProps, props) && activateContainer(container, currentGlobal, props)
|
(!container.mappedProps || !arePropsShallowEqual(container.ownProps, props))
|
||||||
)) {
|
&& activateContainer(container, currentGlobal, props)
|
||||||
|
) {
|
||||||
try {
|
try {
|
||||||
container.mappedProps = mapStateToProps(currentGlobal, props);
|
container.mappedProps = mapStateToProps(currentGlobal, props);
|
||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user