DebounceStrategyOptions

Interface: DebounceStrategyOptions

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

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

Properties

leading?

ts
optional leading: boolean;
optional leading: boolean;

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

Execute immediately on the first call


trailing?

ts
optional trailing: boolean;
optional trailing: boolean;

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

Execute after the wait period on the last call


wait

ts
wait: number;
wait: number;

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

Wait time in milliseconds before execution

Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.

Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.