Skip to content

Commit

Permalink
Fix -[ASPagerNode view] triggering pendingState + nodeLoaded assert (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
samhsiung authored and nguyenhuy committed Sep 13, 2017
1 parent 9df6909 commit 008b847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/ASCollectionNode.mm
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ - (void)didLoad

if (_pendingState) {
_ASCollectionPendingState *pendingState = _pendingState;
self.pendingState = nil;
view.asyncDelegate = pendingState.delegate;
view.asyncDataSource = pendingState.dataSource;
view.inverted = pendingState.inverted;
Expand All @@ -191,7 +192,6 @@ - (void)didLoad
view.usesSynchronousDataLoading = pendingState.usesSynchronousDataLoading;
view.layoutInspector = pendingState.layoutInspector;
view.contentInset = pendingState.contentInset;
self.pendingState = nil;

if (pendingState.rangeMode != ASLayoutRangeModeUnspecified) {
[view.rangeController updateCurrentRangeWithMode:pendingState.rangeMode];
Expand Down

0 comments on commit 008b847

Please sign in to comment.