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
Autoplay

Up next

Previous

About

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

Instructor

Links

Comments

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

>
You need to go PRO to post comments.

Lessons in React Native with Redux