From 0b40721ede94db8799ba2167e4559c06347424ef Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Wed, 4 Jun 2025 20:40:19 +0200 Subject: [PATCH] TeactN: Fix activation function call on mount --- src/lib/teact/teactn.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/teact/teactn.tsx b/src/lib/teact/teactn.tsx index 84492b800..58088b4be 100644 --- a/src/lib/teact/teactn.tsx +++ b/src/lib/teact/teactn.tsx @@ -266,9 +266,10 @@ export function withUntypedGlobal( 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) {