Install
npm install --save redux-saga-combine-latest
Usage
const combineLatest = { console} { } const sagaMiddleware = const store = store //nothing loggedstore //logs out "[{ type: 'type1', some: 'payload' }, { type: 'type2', some: 'payload' }]"store //logs out "[{ type: 'type1', some: 'payload' }, { type: 'type2', other: 'payload' }]"
Notice that the handler saga does not get invoked until at least one action of each type as been received. From that point on, each time a new action is received that we care about, the handler is invoked with the latest action of each type.