Is there any way for redux-saga to notify the view layer after asynchrony ends?

it goes something like this:

is going to use react-saga as the asynchronous solution, but because it is a React-Native project,
needs to call some native interfaces in the view layer component after many requests are successful, so the view layer needs to know when the asynchronous task ends and the asynchronous processing result.

A feature of the dva framework previously used on the web side is that when dispatch an asynchronous effect, the promise object is returned, and then the processing result is returned in the effect, so that the view layer can know the result obtained asynchronously.

is there any solution for redux-saga, that is now used directly to achieve this feature?


has found a solution. Thanks to the big brother upstairs @ dablwow80 for his reference.
wrote his own treatment on this basis, which probably means something like this:

  

use call to call an asynchronous function, and then use put to call a Synchronize function to modify state,.
I don't know what you're talking about. Dva is encapsulated on the basis of saga

.
Menu