I'm making use of redux-saga
for my web app, however I've hit a point where I want to be able to create a single saga
that handles multiple different request types. In order to do this I want to be able to use take
or takeEvery
with a reg-ex. For example:
'foo/SOME_REQUEST'
'bar/SOME_REQUEST'
'baz/SOME_REQUEST'
Should all be handled through something like so:
yield takeEvery('*/SOME_REQUEST', handler);
Does anyone know if this is possible or how it can be achieved?
yield takeEvery(predicateFn, handler);
– Freeborn