Use just `_bridge` instead of `batchedBridge` when actual bridge is already batched one
Reviewed By: javache Differential Revision: D4989251 fbshipit-source-id: 939b54459d14e9bddd60be82787c2ca4d116200c
This commit is contained in:
parent
efa2fdd78a
commit
18e0f84349
|
@ -98,8 +98,9 @@ NSString *const RCTContentDidAppearNotification = @"RCTContentDidAppearNotificat
|
|||
|
||||
[self showLoadingView];
|
||||
|
||||
// Immediately schedule the application to be started
|
||||
[self bundleFinishedLoading:[_bridge batchedBridge]];
|
||||
// Immediately schedule the application to be started.
|
||||
// (Sometimes actual `_bridge` is already batched bridge here.)
|
||||
[self bundleFinishedLoading:([_bridge batchedBridge] ?: _bridge)];
|
||||
}
|
||||
|
||||
RCT_PROFILE_END_EVENT(RCTProfileTagAlways, @"");
|
||||
|
|
Loading…
Reference in New Issue