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

ThrottleStrategyOptions.md

45 lines991 Bytes

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

Options for throttle strategy Ensures executions are evenly spaced over time

Properties

leading?

optional leading: boolean;

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

Execute immediately on the first call


trailing?

optional trailing: boolean;

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

Execute on the last call after wait period


wait

wait: number;

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

Minimum wait time between executions (milliseconds)