Skip to content

UseThrottledCallbackOptions

Defined in: src/hooks/useThrottledCallback/useThrottledCallback.types.ts:1

Properties

leading?

optional leading: boolean

Defined in: src/hooks/useThrottledCallback/useThrottledCallback.types.ts:3

Fire on the leading edge (first call).

Default

true

trailing?

optional trailing: boolean

Defined in: src/hooks/useThrottledCallback/useThrottledCallback.types.ts:5

Fire on the trailing edge (after the last call in the window).

Default

true