You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
isPending() // returns if there is a pending debouncing request
250
+
flush() // immediately flushes pending request
251
+
```
252
+
253
+
244
254
#### Flush method
245
255
246
256
`useDebouncedCallback` has `flush` method. It allows to call the callback manually if it hasn't fired yet. This method is handy to use when the user takes an action that would cause the component to unmount, but you need to execute the callback.
0 commit comments