Dva yield put

dva model uses yield put to execute another method in effects to initiate a request, why not wait for the request to finish executing the following method.

May.26,2021

first of all, I'm not sure what I'm saying is correct. Because I have never used dva
put to execute action immediately, usually I use redux-saga Asynchronous request something like this:

yield take()
yield call()

or

yield take()
yield folk()

where folk does not block execution, and call blocks execution
Why not wait for this request to execute may be folk used internally by this method.

redux-saga api:
https://redux-saga.js.org/doc.

Menu