I am saving an entity.
I want to trigger a synchronous savePending (triggers a reducer against the store), and then an asynchronous save operation (makes the network call to make the save).
function * saveEntity({ paylpoad: { id, name } }) {
yield put (savePending()); // triggers a synchronous reducer
yield put (save()); // triggers an async saga
yield put (saveComplete());
}
Will redux-saga wait for savePending to complete (ie. for the reducer to complete running against the store) before moving on to save? (presumably yes).
Will redux-saga wait for all reducers and sagas associated with an action emitted by a put (eg save) even if they are asynchronous, before moving onto the next yield (eg saveComplete)?