SolidJSS
SolidJSโ€ข2y agoโ€ข
1 reply
danboyle8637

Render Portal as Error Boundary Fallback?

I want to refactor my async code to use Suspense and Error Boundaries.

But when a network request fails... I show an error dialog telling the user what happened and what to do next. This is rendered in a Portal.

Can I just stick that component in the fallback of an Error Boundary and have it work the same?
Was this page helpful?