We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9851460 commit 4e02e1dCopy full SHA for 4e02e1d
src/index.tsx
@@ -149,7 +149,6 @@ export default class InfiniteScroll extends Component<Props, State> {
149
// update state when new data was sent in
150
this.setState({
151
showLoader: false,
152
- pullToRefreshThresholdBreached: false,
153
});
154
}
155
@@ -225,6 +224,9 @@ export default class InfiniteScroll extends Component<Props, State> {
225
224
226
if (this.state.pullToRefreshThresholdBreached) {
227
this.props.refreshFunction && this.props.refreshFunction();
+ this.setState({
228
+ pullToRefreshThresholdBreached: false,
229
+ });
230
231
232
requestAnimationFrame(() => {
0 commit comments