Interface: DebouncedState<T>
@orderly.network/hooks.DebouncedState Subsequent calls to the debounced functiondebounced.callback
return the result of the last func invocation.
Note, that if there are no previous invocations it’s mean you will get undefined. You should check it in your code properly.
Type parameters
Name | Type |
---|---|
T | extends (…args : any ) => ReturnType <T > |
Hierarchy
-
ControlFunctions
↳DebouncedState
Callable
DebouncedState
▸ DebouncedState(...args
): undefined
| ReturnType
<T
>
Parameters
Name | Type |
---|---|
...args | Parameters <T > |
Returns
undefined
| ReturnType
<T
>
Defined in
node_modules/.pnpm/use-debounce@9.0.4_react@18.2.0/node_modules/use-debounce/dist/useDebouncedCallback.d.ts:36Table of contents
Properties
Properties
cancel
• cancel: () =>void
Type declaration
▸ ():void
Cancel pending function invocations
Returns
void
Inherited from
ControlFunctions.cancelDefined in
node_modules/.pnpm/use-debounce@9.0.4_react@18.2.0/node_modules/use-debounce/dist/useDebouncedCallback.d.ts:21flush
• flush: () =>void
Type declaration
▸ ():void
Immediately invoke pending function invocations
Returns
void
Inherited from
ControlFunctions.flushDefined in
node_modules/.pnpm/use-debounce@9.0.4_react@18.2.0/node_modules/use-debounce/dist/useDebouncedCallback.d.ts:25isPending
• isPending: () =>boolean
Type declaration
▸ ():boolean
Returns true
if there are any pending function invocations
Returns
boolean