Don't load collection/table node just to wait for updates to be committed (#3182)

- Because there would be no update otherwise.
This commit is contained in:
Huy Nguyen
2017-03-15 15:55:50 +00:00
committed by Michael Schneider
parent e6ee24debc
commit bf41847665
2 changed files with 8 additions and 2 deletions

View File

@@ -519,7 +519,10 @@
- (void)waitUntilAllUpdatesAreCommitted
{
[self.view waitUntilAllUpdatesAreCommitted];
ASDisplayNodeAssertMainThread();
if (self.nodeLoaded) {
[self.view waitUntilAllUpdatesAreCommitted];
}
}
- (void)reloadDataWithCompletion:(void (^)())completion