Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

DebounceStrategyOptions.md

45 lines991 Bytes

Defined in: packages/db/src/strategies/types.ts:30

Options for debounce strategy Delays execution until after a period of inactivity

Properties

leading?

optional leading: boolean;

Defined in: packages/db/src/strategies/types.ts:34

Execute immediately on the first call


trailing?

optional trailing: boolean;

Defined in: packages/db/src/strategies/types.ts:36

Execute after the wait period on the last call


wait

wait: number;

Defined in: packages/db/src/strategies/types.ts:32

Wait time in milliseconds before execution