TeactN: Fix activation function call on mount

This commit is contained in:
Alexander Zinchuk 2025-06-04 20:40:19 +02:00
parent d84ab8456a
commit 0b40721ede

View File

@ -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) {