1. React
  2. ReactFoo
  3. 2018 Pune
  4. Let's Sync the Async : A Primer on Redux Sagas

Let's Sync the Async : A Primer on Redux Sagas

Preeti Wadhwani at ReactFoo 2018 Pune

Have you ever come across a situation where you want to pause function execution for some time, for example, when you’re waiting for an API response and based on it you want to perform different some action? Or you’re waiting for your database sync to finish? If it sounds relatable, you probably handled such cases using Promises/Redux-thunk, etc. but this talk will provide a cleaner solution for dealing with such async tasks, using Redux Sagas. Redux Sagas take advantage of an ES6 feature called Generators to make such asynchronous flows easy to read, write and test. This talk will focus on exploring Generator functions, and see how can we take advantage of it to deal with async operations and make our lives simpler.