From 047a2d497d765ce320f6681dfe56aaf772e5f948 Mon Sep 17 00:00:00 2001 From: wwwcg Date: Tue, 9 Apr 2024 21:29:16 +0800 Subject: [PATCH] fix(ios): tiny issue of TransactionListener in UIManager --- 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 a24615f8cc3..a452329020a 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]; } }];