Updating review comments
This commit is contained in:
parent
976c3a3e7a
commit
752d9461e6
@ -854,12 +854,14 @@
|
|||||||
|
|
||||||
|
|
||||||
+ (void)loadPostCallActions:(nonnull MVMCoreLoadObject *)loadObject {
|
+ (void)loadPostCallActions:(nonnull MVMCoreLoadObject *)loadObject {
|
||||||
NSDictionary *postCallsDict = [loadObject.pageJSON dictionaryForKey:@"postLoadActions"];
|
NSDictionary *postCallsDict = [loadObject.pageJSON dict:@"postLoadActions"];
|
||||||
if (postCallsDict.count > 0) {
|
if (postCallsDict) {
|
||||||
NSArray *actionList = [postCallsDict arrayForKey:@"actionList"];
|
NSArray *actionList = [postCallsDict array:@"actionList"];
|
||||||
BOOL isConcurrent = [postCallsDict boolForKey:@"concurrent"];
|
BOOL isConcurrent = [postCallsDict boolForKey:@"concurrent"];
|
||||||
//Needs further enhancements based on the flags.
|
//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) {
|
[actionList enumerateObjectsUsingBlock:^(id _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
|
||||||
[[MVMCoreActionHandler sharedActionHandler] handleActionWithDictionary:obj additionalData:nil delegateObject:nil];
|
[[MVMCoreActionHandler sharedActionHandler] handleActionWithDictionary:obj additionalData:nil delegateObject:nil];
|
||||||
}];
|
}];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user