Sign in Go Pro

React Native with Redux

Handling Asynchronous Errors Returned from an API

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson

Up next



HTTP methods can return errors, so it's important to handle errors in asynchronous actions. Errors can be caught with promises, and handled by dispatching actions to show error messages, or clean up data.

Summary of Content:

  • Change the api calls to catch errors coming from the server
  • Catch those errors in the thunk actions
  • Dispatch a new error action that will show the error on the screen
  • Add a close button that clears the error




There are no comments on this lesson, start the conversation below ...


Lessons in React Native with Redux