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

Infinite loop prevention #34

Open
ghengeveld opened this issue Mar 24, 2019 · 0 comments · May be fixed by #165
Open

Infinite loop prevention #34

ghengeveld opened this issue Mar 24, 2019 · 0 comments · May be fixed by #165
Labels
feature New feature requests

Comments

@ghengeveld
Copy link
Member

ghengeveld commented Mar 24, 2019

Hooks make it very easy to shoot yourself in the foot and create an infinite loop causing many HTTP requests in a short time. Perhaps React Async should offer an easy way to prevent this by throttling or debouncing the creation of new promises/requests.

We can offer this as an option (e.g. throttleMs or throttleFn), do it automatically out of the box (in dev mode), or both.

@ghengeveld ghengeveld added the enhancement Enhancement to existing feature label Jul 25, 2019
@ghengeveld ghengeveld added feature New feature requests and removed enhancement Enhancement to existing feature labels Aug 13, 2019
@ghengeveld ghengeveld changed the title [feat] Throttling Infinite loop prevention Aug 13, 2019
@ghengeveld ghengeveld linked a pull request Oct 4, 2019 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature requests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant