react-infinite-scroll-component
react-infinite-scroll-component copied to clipboard
Pull to Refresh is disabled when hasMore is flipped to false
<InfiniteScroll
dataLength={posts.length}
next={() => { this._getPosts(false);}}
hasMore={this.state.hasMore}
scrollableTarget={scrollTarget}
pullDownToRefresh={isMobile}
refreshFunction={() => this._refreshPosts()}
pullDownToRefreshContent={
<PtrArrow className="ptr-arrow"/>
}
releaseToRefreshContent={
<PtrArrow className="ptr-arrow ptr-animation"/>
}
loader={<Loader />}
>
{
posts.map(this._renderRow)
}
</InfiniteScroll>
When this.state.hasMore has changes from true to false after reaching the bottom of the page, pull to refresh seems to get disabled
I also encountered such a problem. Have you solved it
If 'inverse' is set to true, then 'endmessage' and 'loader' will not be displayed
I tried to change "inverse" to "true" with "setState" when "hasMore" is "false", but it failed, and "inverse" also lost its effect
Who can solve this problem?
Why can't refresh when hasmore is false
I encountered the same problem too. Why can't refresh when hasmore is false.