Function: useThrottleTrailing()
useThrottleTrailing<
T>(func,limitMs): (...args) =>void
Defined in: src/core/services/timing.service.ts:284
Throttle with trailing invocation: fires on the leading edge and also fires once at the end of the throttle window with the latest arguments.
Type Parameters
T
T extends (...args) => unknown
The wrapped function type.
Parameters
func
T
Function to throttle.
limitMs
number
Minimum interval between invocations in milliseconds.
Returns
A throttled function with the same signature.
(...args) => void
Example
const throttledResize = useThrottleTrailing(onResize, 200);
window.addEventListener("resize", throttledResize);