#(Static build) Creating error boundaries/ catching render errors component-wise

2 messages · Page 1 of 1 (latest)

south jay
#

Hey everybody,
hope you are doing well.
Is there any way to build error boundaries around astro components while using the static build option? Basically:


<ErrorBoundary>
<ComponentA />
</ErrorBoundary>
<ComponentB />

So when ComponentA cannot be rendered the build shouldn't fail. Also I don't looking for a property-based solution. I wanna catch any error which can occur in ComponentA.

young eagle
#

Sorry to up, @south jay is there any updates about this ?