-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
None
-
Not Needed
-
Iteration Jellyfish
Currently we only have react error boundaries set up for the various tabs in compass (databases, collections, collection views). We should add error boundaries to the rendering of the sidebar as well. It will help gracefully handle errors that occur when a component is rendered. This should ideally should never happen, but in the case that it does happen, a user should be able to use other parts of Compass without the entire react window/instance breaking.
React error boundaries:
https://reactjs.org/docs/error-boundaries.html
Here's how we currently handle them in Compass:
https://github.com/mongodb-js/compass/blob/main/packages/compass-components/src/components/error-boundary.tsx
- related to
-
COMPASS-5075 Add react error boundaries to `connect`
- Closed