JoschuaSchneider/use-error-boundary

Example errors after didCatch

Closed this issue · 2 comments

Hello, I'm looking forward to implementing your tool into my app, it looks like it will be exactlly what I need, thank you. I'm contacting you because your example code creates an error at didCatch in both the npm 'run kit' and in my VScode. I wanted to ask if there is some issue going on that could be causing this error? The curly brackets can be removed after the return statement begins to get it to run without error, but it seems like those are important. I'm really looking forward to using your package. Thanks again.
use-error-boundary
errorboundaryVScode

I'm being told I need to build one from scratch, : ( I was liking how convenient your was. Thanks again.

Hey, sorry for reopening this!

This is an error with the syntax in my example, I will fix that asap.

You would just have to remove one set of the curly-braces on line 17 and 24 to fix that on your side, or wrap another element around them.

Thanks for the Feedback and for reporting! 🙂