This commit focuses on improving client-side error handling for Explore Assistant Deployments. It adds a dependency react-error-boundary and wraps the entire app in this boundary. It uses the provided hook to catch common errors faced client-side and surfaces them in a detailed Error overlay. The error overlay provides:
An error message
A diagnosis
An error type
Recommended next steps for troubleshooting based on the error that was caught
Additionally webpack dev server error overlay is removed in development in favor of this detailed, custom error display.
This commit focuses on improving client-side error handling for Explore Assistant Deployments. It adds a dependency
react-error-boundary
and wraps the entire app in this boundary. It uses the provided hook to catch common errors faced client-side and surfaces them in a detailed Error overlay. The error overlay provides:Additionally webpack dev server error overlay is removed in development in favor of this detailed, custom error display.