Uh oh!
There was an error while loading. Please reload this page.
[iOS] Fix isBatchActive of RCTCxxBridge - #22785
Conversation
facebook-github-bot
left a comment
There was a problem hiding this comment.
@cpojer has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
cpojer
commented
Jan 19, 2019
Hello @zhongwuzw, it seems like this was removed intentionally because it was both unused and can lead to wrong information due to races. Can you explain your use case and reasoning for why you brought it back and why we should include this in React Native again? Thank you. |
zhongwuzw
commented
Jan 19, 2019
@cpojer Hi, Include this check can decrease layout process times because if there has batch calls, it would do layout end of it. |
cpojer
commented
Jan 21, 2019
Got it, I'm gonna land it since there are still references to it in the code. If somebody deems it not useful, I'll let them remove it in the future across the whole codebase. |
react-native-bot
commented
Jan 21, 2019
@zhongwuzw merged commit d55558e into |
Summary: Seems we lost handler of `isBatchActive` from [RCTBatchedBridge a86171a](https://github.com/facebook/react-native/blob/a86171a48284c440226a79a26c6d6a4704d401e9/React/Base/RCTBatchedBridge.m) to [RCTCxxBridge 5bc7e39](react/react-native@b774820#diff-a2a67635fffd7b690d14dc17ae563a71). Changelog: ---------- [iOS] [fixed] - Fix isBatchActive of RCTCxxBridge Pull Request resolved: react/react-native#22785 Reviewed By: mhorowitz Differential Revision: D13731897 Pulled By: cpojer fbshipit-source-id: 8d6b85bcea8fe8997a93b4e1ac8b8007422ca20e
Summary: Seems we lost handler of `isBatchActive` from [RCTBatchedBridge a86171a](https://github.com/facebook/react-native/blob/a86171a48284c440226a79a26c6d6a4704d401e9/React/Base/RCTBatchedBridge.m) to [RCTCxxBridge 5bc7e39](react/react-native@b774820#diff-a2a67635fffd7b690d14dc17ae563a71). Changelog: ---------- [iOS] [fixed] - Fix isBatchActive of RCTCxxBridge Pull Request resolved: react/react-native#22785 Reviewed By: mhorowitz Differential Revision: D13731897 Pulled By: cpojer fbshipit-source-id: 8d6b85bcea8fe8997a93b4e1ac8b8007422ca20e
Summary: Seems we lost handler of `isBatchActive` from [RCTBatchedBridge a86171a](https://github.com/facebook/react-native/blob/a86171a48284c440226a79a26c6d6a4704d401e9/React/Base/RCTBatchedBridge.m) to [RCTCxxBridge 5bc7e39](react/react-native@b774820#diff-a2a67635fffd7b690d14dc17ae563a71). Changelog: ---------- [iOS] [fixed] - Fix isBatchActive of RCTCxxBridge Pull Request resolved: react/react-native#22785 Reviewed By: mhorowitz Differential Revision: D13731897 Pulled By: cpojer fbshipit-source-id: 8d6b85bcea8fe8997a93b4e1ac8b8007422ca20e
Summary: Seems we lost handler of `isBatchActive` from [RCTBatchedBridge a86171a](https://github.com/facebook/react-native/blob/a86171a48284c440226a79a26c6d6a4704d401e9/React/Base/RCTBatchedBridge.m) to [RCTCxxBridge 5bc7e39](react/react-native@b774820#diff-a2a67635fffd7b690d14dc17ae563a71). Changelog: ---------- [iOS] [fixed] - Fix isBatchActive of RCTCxxBridge Pull Request resolved: react/react-native#22785 Reviewed By: mhorowitz Differential Revision: D13731897 Pulled By: cpojer fbshipit-source-id: 8d6b85bcea8fe8997a93b4e1ac8b8007422ca20e
Summary: Seems we lost handler of `isBatchActive` from [RCTBatchedBridge a86171a](https://github.com/facebook/react-native/blob/a86171a48284c440226a79a26c6d6a4704d401e9/React/Base/RCTBatchedBridge.m) to [RCTCxxBridge 5bc7e39](react/react-native@b774820#diff-a2a67635fffd7b690d14dc17ae563a71). Changelog: ---------- [iOS] [fixed] - Fix isBatchActive of RCTCxxBridge Pull Request resolved: react/react-native#22785 Reviewed By: mhorowitz Differential Revision: D13731897 Pulled By: cpojer fbshipit-source-id: 8d6b85bcea8fe8997a93b4e1ac8b8007422ca20e
Summary: Seems we lost handler of `isBatchActive` from [RCTBatchedBridge a86171a](https://github.com/facebook/react-native/blob/a86171a48284c440226a79a26c6d6a4704d401e9/React/Base/RCTBatchedBridge.m) to [RCTCxxBridge 5bc7e39](react/react-native@b774820#diff-a2a67635fffd7b690d14dc17ae563a71). Changelog: ---------- [iOS] [fixed] - Fix isBatchActive of RCTCxxBridge Pull Request resolved: react/react-native#22785 Reviewed By: mhorowitz Differential Revision: D13731897 Pulled By: cpojer fbshipit-source-id: 8d6b85bcea8fe8997a93b4e1ac8b8007422ca20e
Seems we lost handler of
isBatchActivefrom RCTBatchedBridge a86171a to RCTCxxBridge 5bc7e39.Changelog:
[iOS] [fixed] - Fix isBatchActive of RCTCxxBridge
Test Plan:
isBatchActivealways equal toNObefore thisPR, after it, if batched message is being invoked,isBatchActiveequal toYES.