-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Closed
Labels
Ran CommandsOne of our bots successfully processed a command.One of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.
Description
Is this a bug report?
I am not sure
Have you read the Contributing Guidelines?
Yes
Environment
Steps to Reproduce
1.Load the first page
2.Simulate a weak network status (such as shutting down the network)
3.Sliding to the ListView triggers loading more locations
4.Swipe to the top of listview
5.Connect to the network
6.Swipe to load more positions
Expected Behavior
Load the second page of data
Actual Behavior
Load more interfaces without callbacks
Reproducible Demo
I actually looked at the Flatlist source code and found this method below,
and I want to know why the current list height should be judged when loading more.
How do I load more data after the network back to normal?
_maybeCallOnEndReached: function(event?: Object) {
if (
this.props.onEndReached &&
this.scrollProperties.contentLength !== this._sentEndForContentLength &&
this._getDistanceFromEnd(this.scrollProperties) <
this.props.onEndReachedThreshold &&
this.state.curRenderedRowsCount ===
(this.props.enableEmptySections
? this.props.dataSource.getRowAndSectionCount()
: this.props.dataSource.getRowCount())
) {
this._sentEndForContentLength = this.scrollProperties.contentLength;
this.props.onEndReached(event);
return true;
}
return false;
},
(Paste the link to an example project and exact instructions to reproduce the issue.)
Metadata
Metadata
Assignees
Labels
Ran CommandsOne of our bots successfully processed a command.One of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.