Add error boundary to Compass sidebar

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • 1.34.0
    • Affects Version/s: None
    • Component/s: Sidebar, Tech debt
    • None
    • Not Needed

      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

            Assignee:
            Rhys Howell
            Reporter:
            Rhys Howell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: