ReactFoo Bangalore annual conference

India's largest React conference

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

Submitted by Preeti Wadhwani (@preetiwadhwani) on Friday, 26 January 2018

videocam
Preview video

Technical level

Intermediate

Status

Submitted

Vote on this proposal

Login to vote

Total votes:  +4

Abstract

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.

Outline

Introduction to Generator functions
Generators in action
How redux-saga using generator functions
Using it in real world application
Writing tests for Sagas

Requirements

The participants must be familiar with Redux.

Speaker bio

Preeti is a programmer at heart, with over 3+ years on mobile. She’s worked on multiple but Android remains her passion, with her experience allowing her to handle complete development cycles, and to go on and lead adjacent teams. When she isn’t glued to her code, Preeti can be found experimenting with gourmet or playing her guitar.

Links

Slides

https://drive.google.com/open?id=1uB9Y8ufZSV9Nvc-WY2hsXYIgFtRnPQ10leJ51mnImJE

Preview video

https://drive.google.com/open?id=1AlmqQeK2087-YFwhS29GZdRY71eoTfqz

Comments

Login with Twitter or Google to leave a comment