queryClient.ensureQuery and throwing to ErrorBoundary
Is there a way to make queries throw other things than Errors?
I'm using queryClient.ensureQuery with React Router's
I expected to catch this in my React Router
I'm using queryClient.ensureQuery with React Router's
loader like this:I expected to catch this in my React Router
ErrorComponent, but it's not an Error object so it's ignored and ensureQuery returns.