Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh is always running. #14

Open
MatheusLima7 opened this issue Dec 8, 2017 · 1 comment
Open

Refresh is always running. #14

MatheusLima7 opened this issue Dec 8, 2017 · 1 comment

Comments

@MatheusLima7
Copy link

Refresh is always running. How to control to only give update at the top of the application when it is not at the top?

@349989153
Copy link

349989153 commented Jul 23, 2018

onRefresh prop takes a function, which will be passed two params in: resolve and reject.

Just call the resolve and reject in your onRefresh handler at the right time.
https://github.com/Broltes/react-touch-loader/blob/master/example/app.jsx#L20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants