createDebouncedLogicFunction
| Generic types: | TValue |
Create a debounced logic function from a conditional expression.
This function wraps the condition evaluation in a debounce mechanism, so state changes only take effect after the specified delay. Useful for avoiding UI flicker during rapid typing.
Presentation
function createDebouncedLogicFunction (
expression: ConditionalExpression ,
debounceMs: number,
): LogicFn<TValue, boolean>;Returns
LogicFn<TValue, boolean> -A LogicFn that evaluates the condition with debouncing
Parameters
| Name | Type | Description |
|---|---|---|
| expression | | The conditional expression to evaluate |
| debounceMs | number | The debounce duration in milliseconds |