qwik icon indicating copy to clipboard operation
qwik copied to clipboard

Error boundaries [✨]

Open iamhassanfaraji opened this issue 3 years ago • 3 comments

Is your feature request related to a problem?

error handing in jsx

Describe the solution you'd like

in react the "componentDidCatch" lifecycle can receive an error of jsx rendering in production and prevent breaking the whole app and other jsx rendere

Describe alternatives you've considered

dont have other idea

Additional context

No response

iamhassanfaraji avatar Sep 04 '23 08:09 iamhassanfaraji

Hi @iamhassanfaraji , can you create a reproducible repo? Can you insert a title to this issue pls?

gioboa avatar Sep 04 '23 09:09 gioboa

https://stackblitz.com/edit/qwik-starter-a6bqm3?file=src%2Froutes%2Findex.tsx

runtime error might occur inside jsx, using QwikCity error resolves in minimalHtmlResponse(500, "Internal Server Error")

image

it would be great to have mechanism to handle runtime errors

mhuretski avatar Jan 19 '24 14:01 mhuretski

dupe of https://github.com/QwikDev/qwik-evolution/issues/85

PatrickJS avatar May 07 '24 03:05 PatrickJS