API Error Handling in Reactby@antonkrylov322
5,577 reads

API Error Handling in React

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

The error handler must be accessible from the outside (the handler must not eat it) The error must be able to work with Zero-configuration (configured defaults) It’s important because every time you hide errors behind abstractions, you get big difficulties afterward. Backend error format is one of the universal ones described below. Use a common request handler everywhere and feel joyful and joyful users will never be puzzled by what happens with errors with them again. The final solution is to agree on a single format with the backend rather than fence a new solution.

Company Mentioned

Mention Thumbnail
featured image - API Error Handling in React
Anton Krylov HackerNoon profile picture

@antonkrylov322

Anton Krylov


Receive Stories from @antonkrylov322


Credibility

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa