Updating review comments

This commit is contained in:
Subramaniam, Ramya 2019-06-10 19:14:17 +05:30
parent 976c3a3e7a
commit 752d9461e6

View File

@ -854,12 +854,14 @@
+ (void)loadPostCallActions:(nonnull MVMCoreLoadObject *)loadObject {
NSDictionary *postCallsDict = [loadObject.pageJSON dictionaryForKey:@"postLoadActions"];
if (postCallsDict.count > 0) {
NSArray *actionList = [postCallsDict arrayForKey:@"actionList"];
NSDictionary *postCallsDict = [loadObject.pageJSON dict:@"postLoadActions"];
if (postCallsDict) {
NSArray *actionList = [postCallsDict array:@"actionList"];
BOOL isConcurrent = [postCallsDict boolForKey:@"concurrent"];
//Needs further enhancements based on the flags.
if (isConcurrent) {
BOOL shouldTriggerFromCache = [postCallsDict boolForKey:@"shouldTriggerFromCache"];
//Check if page is not from cache
if (!shouldTriggerFromCache && !loadObject.pageDataFromCache) {
[actionList enumerateObjectsUsingBlock:^(id _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
[[MVMCoreActionHandler sharedActionHandler] handleActionWithDictionary:obj additionalData:nil delegateObject:nil];
}];