> ## Documentation Index
> Fetch the complete documentation index at: https://orderly.network/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Orderly network hooks.DebouncedState

[Orderly SDKs](/sdks/tech-doc/README) / [Modules](/sdks/tech-doc/modules) / [@orderly.network/hooks](/sdks/tech-doc/modules/orderly_network_hooks) / DebouncedState

# Interface: DebouncedState\<T>

[@orderly.network/hooks](/sdks/tech-doc/modules/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

* [`ControlFunctions`](/sdks/tech-doc/interfaces/orderly_network_hooks.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](mailto:debounce@9.0.4_react)@18.2.0/node\_modules/use-debounce/dist/useDebouncedCallback.d.ts:36

## Table of contents

### Properties

* [cancel](/sdks/tech-doc/interfaces/orderly_network_hooks.DebouncedState#cancel)
* [flush](/sdks/tech-doc/interfaces/orderly_network_hooks.DebouncedState#flush)
* [isPending](/sdks/tech-doc/interfaces/orderly_network_hooks.DebouncedState#ispending)

## Properties

### cancel

• **cancel**: () => `void`

#### Type declaration

▸ (): `void`

Cancel pending function invocations

##### Returns

`void`

#### Inherited from

[ControlFunctions](/sdks/tech-doc/interfaces/orderly_network_hooks.ControlFunctions).[cancel](/sdks/tech-doc/interfaces/orderly_network_hooks.ControlFunctions#cancel)

#### Defined in

node\_modules/.pnpm/use-[debounce@9.0.4\_react](mailto: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](/sdks/tech-doc/interfaces/orderly_network_hooks.ControlFunctions).[flush](/sdks/tech-doc/interfaces/orderly_network_hooks.ControlFunctions#flush)

#### Defined in

node\_modules/.pnpm/use-[debounce@9.0.4\_react](mailto: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](/sdks/tech-doc/interfaces/orderly_network_hooks.ControlFunctions).[isPending](/sdks/tech-doc/interfaces/orderly_network_hooks.ControlFunctions#ispending)

#### Defined in

node\_modules/.pnpm/use-[debounce@9.0.4\_react](mailto:debounce@9.0.4_react)@18.2.0/node\_modules/use-debounce/dist/useDebouncedCallback.d.ts:29
