-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Full Stack Web Development with Remix
By :

Error handling is an important part of building resilient user experiences. We can distinguish two kinds of errors:
Remix provides primitives and conventions to handle both unexpected and expected errors uniformly. This chapter covers the following topics:
First, we will fabricate some unexpected errors and learn how to handle them. Next, we will review the difference between returning and throwing Response
objects in loader
and action
functions. We will see how we can handle thrown responses with Remix’s ErrorBoundary
. Finally, we will add not-found error handling to BeeRich.
After reading this chapter, you will understand how to manage both unexpected and expected failures in Remix declaratively using Remix’s ErrorBoundary...