-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug?]: ErrorBoundary not working in nested (children) layouts #1677
Comments
tldr; don't destructure The latter works because And the former breaks because https://playground.solidjs.com if you'd check the compiler output and the runtime behavior. |
Thank you for your answer @mdynnl <PageLayout >
<CounterThrowOnMount />
</PageLayout> This case doesn't catch an error as well, even if error is throw on component mount.
|
The solution is to fix the function PageLayout(props) {
return <...>{props.children}</...>
} as the de-structuring is the cause. |
Duplicates
Latest version
Current behavior 😯
ErrorBoundary not catch error in children node.
Expected behavior 🤔
should catch error like in this case: Pass by props.
Steps to reproduce 🕹
Full Example: https://github.com/PawelJastrzebski/solidStart_error_boundry
Context 🔦
Catch errors on page Layout level.
I'm not sure if this supposed to work on the children level, or is it not working on children level by design?
Your environment 🌎
The text was updated successfully, but these errors were encountered: