Skip to content

Commit 24f3a7d

Browse files
Update outdated tsdoc for useDebouncedCallback
1 parent 24715b1 commit 24f3a7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/useDebouncedCallback.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export interface DebouncedState<T extends (...args: any) => ReturnType<T>>
110110
* window.addEventListener('popstate', debounced.cancel)
111111
*
112112
* // Check for pending invocations.
113-
* const status = debounced.pending() ? "Pending..." : "Ready"
113+
* const status = debounced.isPending() ? "Pending..." : "Ready"
114114
*/
115115
export default function useDebouncedCallback<
116116
T extends (...args: any) => ReturnType<T>,

0 commit comments

Comments
 (0)