kedro-viz
kedro-viz copied to clipboard
Introduce ErrorBoundary Component
Description
At the moment Kedro-Viz does not have an error boundary and a fallback UI (nothing that I am aware of apart from a wrong or broken URL). This ticket is to introduce ErrorBoundary for Kedro-Viz
Context
When an error occurs due to multiple reasons, react removes UI resulting in a blank screen and a bad experience for users. Instead, we can have ErrorBoundary to fallback.
Possible Implementation
https://react.dev/reference/react/Component#catching-rendering-errors-with-an-error-boundary
Checklist
- [x] Include labels so that we can categorise your feature request
Suggestion: can re-use the PipelineWarningContent
for now to handle the error