Objective Redux

Redux made better, objectively.

configureDebounce

function configureDebounce(debounceConfig: DebounceTakeConfig): EffectBuilder

Returns a function that will create a debounce saga watcher. This can be used with the SagaBuilder::withEffect() method.

Parameters

debounceConfig: DebounceTakeConfig
The configuration for the watcher.

debounceConfig.debounceTime: number
The time debounce time in milliseconds.

Returns

EffectBuilder
A function that creates a debounce watching function.

Examples

configureDebounce({ debounceTime: 1000 });