Objective Redux

Redux made better, objectively.

configureTake

function configureTake(takeConfig: TakeConfig): EffectBuilder

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

Parameters

takeConfig: TakeConfig
The configuration for the watcher.

takeConfig.pattern?: string|string[]|(action: any) => boolean

Returns

EffectBuilder
A function that creates a take watching function.

Examples

configureTake({ pattern: 'REQUEST' });