Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit a6da3d1

Browse files
committed
[ASCollectionView] prevent data controller from removing/adding sections during reloadDataImmediately
Signed-off-by: Matej Knopp <matej.knopp@gmail.com>
1 parent 58c2e80 commit a6da3d1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

AsyncDisplayKit/ASCollectionView.mm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ - (void)reloadData
252252
- (void)reloadDataImmediately
253253
{
254254
ASDisplayNodeAssertMainThread();
255+
_superIsPendingDataLoad = YES;
255256
[_dataController reloadDataImmediatelyWithAnimationOptions:kASCollectionViewAnimationNone];
256257
[super reloadData];
257258
}

0 commit comments

Comments
 (0)