1. React
  2. ReactNext
  3. 2019
  4. Handle All Async Events in Redux-Sagas

Handle All Async Events in Redux-Sagas

André Kovac at ReactNext 2019

Redux-sagas became a pretty common tool to handle asynchronous actions in the react-redux ecosystem. However, often I saw that not all asynchronous events are handled with it although redux-sagas have event channels which allow you to listen and react to any asynchronous routine (e.g. socket connections or external signals) and not just redux actions. Expect some live coding in this talk: We will implement a redux-saga event channel to catch signals of bluetooth beacons (why on earth do I try a hardware live demo!). Besides, this talk want to strengthen your understanding of generator functions (the backbone of redux-sagas). To this end, we will dive into a naive implementation of async-await to understand generator functions, and as a result, redux-sagas better.