takeEvery – enables the use of several fetchData objects at the same time. At a given moment, we can start a new fetchData task while there are still one or more previous fetchData tasks which have not yet terminated. takeLatest – Only one fetchData task can be active at any given moment.
Read moreWhat is Saga pattern react?
Now back to React. redux-saga is a library that easily manages application’s side-effects(asynchronous data request, browser-cache, any impure requests) and effectively executes with simple tests for precise failure logs . In doing so, saga uses generator function in javascript. Saga in react.
Read moreWhat means saga pattern?
The Saga architecture pattern provides transaction management using a sequence of local transactions . A local transaction is the unit of work performed by a saga participant. Every operation that is part of the Saga can be rolled back by a compensating transaction.
Read moreWhat is Saga pattern used for?
The saga pattern is a failure management pattern that helps establish consistency in distributed applications, and coordinates transactions between multiple microservices to maintain data consistency .
Read more