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

Commit 46bcc90

Browse files
committed
Merge pull request #1072 from knopp/ASCollectionView-content-offset-975
[ASCollectionView] prevent data controller from removing/adding sections during reloadDataImmediately.
2 parents 58c2e80 + a6da3d1 commit 46bcc90

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)