Next.js Discord

Discord Forum

ErrorBoundary not applying when child component throws

Unanswered
Matt posted this in #help-forum
Open in Discord
I am wrapping my Header component in an ErrorBoundary. The child (server component) is throwing, but instead of showing the ErrorComponent, I get an unhandled runtime error. Any idea why?

5 Replies

bump
need-more-info
That getUserSparks function is throwing in the header @aardani
Call site in the OP second screenshot