Replies: 1 comment 1 reply
-
Hi, Have you got an example code? I'm assuming it's something like this: try {
... your code here ...
} catch (e:unknown){
if (e instanceof YourError){
throw Error("Error for your parent component");
}
} On the face of it, it doesn't seem like something that would cause an infinite loop. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm trying to bubble my exception up to the error boundary in the root for specific errors only. I have tried checking the error type in the child boundaries and re-throwing the errors, but this resulted in an infinite loop (of the error being thrown and caught in the same component). Is there any way of achieving this functionality? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions