mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-10 09:29:39 +08:00
Renaming uiManagerWillFlushUIBlocks -> uiManagerWillPerformMounting
Summary: Because it is not simply flushing, it (in the future) is more complex process. And the names should represent logical meaning of the process, not particular implementation details. It also nice to have unified terminology across our reactive UI frameworks. See the next diffs. Reviewed By: rsnara Differential Revision: D6436770 fbshipit-source-id: 0a0b686e8ace89e30f6787a37c0a7965c5af757b
This commit is contained in:
committed by
Facebook Github Bot
parent
ecec4319c4
commit
0a8721c340
@@ -34,7 +34,7 @@ RCT_EXPORT_MODULE();
|
||||
- (dispatch_queue_t)methodQueue
|
||||
{
|
||||
// This module needs to be on the same queue as the UIManager to avoid
|
||||
// having to lock `_operations` and `_preOperations` since `uiManagerWillFlushUIBlocks`
|
||||
// having to lock `_operations` and `_preOperations` since `uiManagerWillPerformMounting`
|
||||
// will be called from that queue.
|
||||
return RCTGetUIManagerQueue();
|
||||
}
|
||||
@@ -198,7 +198,7 @@ RCT_EXPORT_METHOD(removeAnimatedEventFromView:(nonnull NSNumber *)viewTag
|
||||
|
||||
#pragma mark - RCTUIManagerObserver
|
||||
|
||||
- (void)uiManagerWillFlushUIBlocks:(RCTUIManager *)uiManager
|
||||
- (void)uiManagerWillPerformMounting:(RCTUIManager *)uiManager
|
||||
{
|
||||
if (_preOperations.count == 0 && _operations.count == 0) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user