3dstreet
3dstreet copied to clipboard
error logging and/or UI for app fatal error
2 different users have reported cases where the React UI disappears
- this is likely due to a fatal react error, in the past examples include lack of error handling for invalid data type in a-frame component properties / react widget rendering
- however there is no message for users when this happens and we do not have an error log
options:
- javascript error logging? for example sentry
- message to end-user when app crashes? one method could be this: https://react.dev/reference/react/Component#catching-rendering-errors-with-an-error-boundary another method could be vanilla JS code that does a healthcheck somehow and shows a div if there is an error.