Redux Saga pending/success/failure pattern – how to handle interruption
I am using redux-saga
and @reduxjs/toolkit
. I make some webservice requests and save their responses into redux, and I am following a pending/success/failure pattern I’ve seen mentioned in a few places. For my redux saga:
Are put actions in redux-sagas dealt with atomically together with the triggering action?
Suppose I have a state with two numbers controlled with actions SET_NUMBER
and SET_OTHER_NUMBER
, and then I have a saga tries to make sure both numbers are always set to the same value: