QwikDev / qwik

Instant-loading web apps, without effort
https://qwik.dev
MIT License
20.46k stars 1.26k forks source link

Error boundaries [✨] #5096

Closed iamhassanfaraji closed 2 months ago

iamhassanfaraji commented 10 months ago

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

gioboa commented 10 months ago

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

mhuretski commented 5 months ago

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

PatrickJS commented 2 months ago

dupe of https://github.com/QwikDev/qwik/issues/3720