Orderly network hooks.DebouncedState
Orderly SDKs / Modules / @orderly.network/hooks / DebouncedState
Interface: DebouncedState<T>
@orderly.network/hooks.DebouncedState
Subsequent calls to the debounced function debounced.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
-
↳
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:36
Table of contents
Properties
Properties
cancel
• cancel: () => void
Type declaration
▸ (): void
Cancel pending function invocations
Returns
void
Inherited from
Defined in
node_modules/.pnpm/use-debounce@9.0.4_react@18.2.0/node_modules/use-debounce/dist/useDebouncedCallback.d.ts:21
flush
• flush: () => void
Type declaration
▸ (): void
Immediately invoke pending function invocations
Returns
void
Inherited from
Defined in
node_modules/.pnpm/use-debounce@9.0.4_react@18.2.0/node_modules/use-debounce/dist/useDebouncedCallback.d.ts:25
isPending
• isPending: () => boolean
Type declaration
▸ (): boolean
Returns true
if there are any pending function invocations
Returns
boolean
Inherited from
Defined in
node_modules/.pnpm/use-debounce@9.0.4_react@18.2.0/node_modules/use-debounce/dist/useDebouncedCallback.d.ts:29