Take a TakeableChannel as part of take(Array) call
Author: yardenappCreated Sep 8, 2020Updated Jul 24, 2026
Labelsquestion
Issue Description
I am not able to take on an eventChannel that is part of an array of takeable patterns/channels.
Example
- Try to take on an eventChannel, passing it as part of an array.
Code example:
// The following line doesn't work
const event = yield take([takeableEventChannel]);
// The following line works
const event = yield take(takeableEventChannel);
// A workaround for this issue/missing syntax
const event = yield race([take(['action_type']), take(takeableEventChannel)])
Source: redux-saga/redux-saga