ErrorBoundary: "Uncaught in promise" in async functions #3118
Unanswered
janhesters
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
TL;DR: How can error boundaries catch errors that happen in promises?
When you create a new remix app with
npx create-remix@latest
, export anErrorBoundary
component fromroutes/index.tsx
and then amend the
Index
componentindex.tsx
route withyou get the error in the console
but the
ErrorBoundary
component doesn't trigger and is never shown.Is there a way to catch errors from promises with
ErrorBoundary
ies?Interesting corollary:
breaks on the whole app like this 👇
Beta Was this translation helpful? Give feedback.
All reactions