Skip to content

Support for throttling and debouncing when performing api call #1750

Discussion options

You must be logged in to vote

Both cases you are mentioning probably should have that information as part of the query key, which means in local state. There are good hooks for both throttling: https://github.com/jaredLunde/react-hook/tree/master/packages/throttle#readme and debouncing: https://usehooks.com/useDebounce/

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by TkDodo
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@andriy-shymkiv
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
7 participants