Built in Debounce #3077
Answered
by
TkDodo
cubecleveland
asked this question in
Q&A
Built in Debounce
#3077
-
Hello, Is there an inbuilt debounce to useQuery lib? We have cases in the ui wheere we are calling a utation on a clikc of a button to togle a state in the DB and we want to debounce this. |
Beta Was this translation helpful? Give feedback.
Answered by
TkDodo
Dec 9, 2021
Replies: 1 comment
-
no, there is not. if its a mutation, you need to debounce the call to the mutateFn for yourself, e.g. via lodash.debounce |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
cubecleveland
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
no, there is not. if its a mutation, you need to debounce the call to the mutateFn for yourself, e.g. via lodash.debounce