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

NameType
Textends (…args: any) => ReturnType<T>

Hierarchy

Callable

DebouncedState

DebouncedState(...args): undefined | ReturnType<T>

Parameters

NameType
...argsParameters<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

ControlFunctions.cancel

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

ControlFunctions.flush

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

ControlFunctions.isPending

Defined in

node_modules/.pnpm/use-debounce@9.0.4_react@18.2.0/node_modules/use-debounce/dist/useDebouncedCallback.d.ts:29