After reading this blog, you will be able to understand the brief about what is redux-saga. Also you able to install, configure, and create the basic saga in your application. So, before we get any deeper, it’s important to note, that the actual term “saga”.
A saga in general programming series of reversible transactions, the saga is designed to replace single huge, locking transactions.
eg: Deposit in a bank would require a change in different spreadsheets, the traditional way requires locking all these spreadsheets changing a value then unlocking them
Whereas in functional programming, in the saga, you can break the transactions into small steps, and if there was any error along the way you can reverse all the steps that you’ve taken. Now, to manage all this, saga uses a process manager to keep track of what’s been done and what other actions need to be taken.
What is Redux-Saga?
Redux-saga is a redux middleware library, that is designed to handle side effects in your redux app nice and simple. It achieves this by leveraging an ES6 feature called Generators, allowing us to write asynchronous code that looks synchronous, and is very easy to test.
#react #reactjs #saga #redux #reduxsaga