Chapter 6. Handling complex side effects

This chapter covers

  • Looking again at redux-thunk
  • Introducing generators
  • Managing complex asynchronous operations with sagas

Eventually, you’re going to want to handle more complex series of events in response to a user interaction. Using what you’ve learned so far, how would you handle logging in a user? The requirements will vary from app to app, of course, but let’s consider what could be involved. Your application may need to verify login credentials, issue an authorization token, fetch user data, handle retries upon failure, and redirect upon success. What tools are at your disposal?

Up to now, we’ve explored thunks by way of the redux-thunk package as a way to handle side effects and asynchronous ...

Get Redux in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.