Frontend Jun 11, 2019

Handle All Async Events in Redux-Sagas

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.

As a freelancer software engineer, André builds and improves React and React Native apps. In his projects he often introduces new tools and puts an emphasis on clean code. He worked a lot with bluetooth beacon technology and created a popular open-source library in this field. As data scientist he digs through data and tries to discover interesting relations. You can often find André at hackathons, which he already successfully participated in 19 times. If he doesn’t code, André teaches kids how to program at science festivals all around the world or explains scientific topics to general audiences at science slams throughout Germany.