Closed lancegliser closed 9 months ago
One issue I have thought of that isn't handled in this code:
How do I clear the error and display the component again?
@lancegliser Hey, sorry for the late reply had a busy week. Haven't spent too much time in the Vue these days unfortunately, but I'll definitely consider updating to support TS. Thank you for the work you put in.
For the second issue, you should be able to "reset" the boundary by changing the key property. Check out this sandbox
Hey there.
I had need of an ErrorBoundary on my project, but am trying to stay inside TypeScript. With the release of the Composition UI, it's a little more possible. I had a go at creating a version of what you've done using it. Thought you might care to use it as a starting point if you begin supporting it or TS:
https://gist.github.com/lancegliser/9a4d22dbab2113a45d5ddb04f5825071
The relevant bit is: