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?
1 Reply
bigmistqke
bigmistqke10mo ago
yes and no. it will work, but you will have to reset the ErrorBoundary manually: see https://github.com/solidjs/solid/discussions/705
GitHub
createResource: It stops updating result when it encounters an erro...
Playground Link import { createSignal, createResource } from "solid-js"; import { render } from "solid-js/web"; const fetchUser = async (id) => { if (id % 5 === 0) throw new ...
Want results from more Discord servers?
Add your server