theopensystemslab / fairhold-dashboard

https://fairhold-dashboard.vercel.app
0 stars 0 forks source link

Implement `ErrorBoundary` wrappers #50

Closed zz-hh-aa closed 2 months ago

zz-hh-aa commented 2 months ago

We should implement a pattern of ErrorBoundaries within the application.

This would allow a single graph to fail to render, without breaking the entire application. This is helpful for both debugging and development, as well as a useful guard for user experience.

Suggestion - right now, the graphs seem worth wrapping in error boundaries, as well as the form (e.g. if we get an invalid API response).

Docs: