Reputation: 175
So. I use react library (if it matters). Task is next - i have to get data by typing input. But problem is next - i should make request if only user finished typing. What does it mean? I can make request once after user inputing, after 1 second for example.
Upvotes: 0
Views: 66
Reputation: 1499
What you are looking for is called request debouncing.
You can let a library such as lodash do it for you: https://lodash.com/docs/4.17.11#debounce or write the function yourself.
Upvotes: 2