mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-15 10:27:59 +08:00
make isFirstRun a precondition of clearing pending updates in notifyApplicationReady
This commit is contained in:
@@ -506,7 +506,10 @@ RCT_EXPORT_METHOD(isFirstRun:(NSString *)packageHash
|
||||
RCT_EXPORT_METHOD(notifyApplicationReady:(RCTPromiseResolveBlock)resolve
|
||||
rejecter:(RCTPromiseRejectBlock)reject)
|
||||
{
|
||||
[CodePush removePendingUpdate];
|
||||
if (_isFirstRunAfterUpdate) {
|
||||
[CodePush removePendingUpdate];
|
||||
}
|
||||
|
||||
resolve(nil);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user