From d62d926f6aa448de55cd2af34fc2b0a03e86c6fd Mon Sep 17 00:00:00 2001 From: wwwcg Date: Wed, 10 Apr 2024 11:22:55 +0800 Subject: [PATCH] fix(ios): tiny issue of TransactionListener in UIManager (#3821) --- renderer/native/ios/renderer/HippyUIManager.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/renderer/native/ios/renderer/HippyUIManager.mm b/renderer/native/ios/renderer/HippyUIManager.mm index bf1ec66b829..18bc1e1930c 100644 --- a/renderer/native/ios/renderer/HippyUIManager.mm +++ b/renderer/native/ios/renderer/HippyUIManager.mm @@ -1485,7 +1485,8 @@ - (void)layoutAndMountOnRootNode:(std::weak_ptr)rootNode { }]; } [self addUIBlock:^(HippyUIManager *uiManager, __unused NSDictionary *viewRegistry) { - for (id node in uiManager->_componentTransactionListeners) { + NSArray *transactionListeners = [uiManager->_componentTransactionListeners allObjects]; + for (id node in transactionListeners) { [node hippyBridgeDidFinishTransaction]; } }];