Handle network errors gracefully

Shane Osbourne
InstructorShane Osbourne

Share this video with your friends

Send Tweet

Any application that uses external services such as APIs should be able to handle errors gracefully. Often this requires no more that displaying a message to the user and ensuring the application continues to function. In this lesson we’ll look at how we can convert an error from the network into an action that is dispatched into the Redux store, allowing us to show an error message to the user and prevent the application from crashing.

Platon
Platon
~ 3 years ago

Once an error is thrown, the epic doesn't get called again. Actions get dispatched and passed into the reducer as usual... and that's that.