Use ErrorBoundary inside a createRoot?
I'm using a pattern where I have a globally accessible resource on a
createRoot:
However the resourceCreator can error out, crashing the entire application with it. Is there a way to handle this inside a createResource?2 Replies
I guess you can have try..catch block inside
resourceCreator
if you want this to trigger an ErrorBoundary you'd have to trigger it manually if this ErrorBoundary is not an ancestor of the rootsadly that's not an option. skipped
createResource and switched it to a createSignal + createEffect.
Thanks anyway