Updating review comments
This commit is contained in:
parent
976c3a3e7a
commit
752d9461e6
@ -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];
|
||||
}];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user