Implement error handling #11

Open
opened 2021-12-14 19:17:12 +00:00 by rob · 2 comments
Owner

Error handling for pretty much everything, especially grpc-web requests

Error handling for pretty much everything, especially grpc-web requests
rob added the
frontend
label 2021-12-14 19:17:12 +00:00
Collaborator

I have a proposal for this which involves useContext and useReducer in symphony to replicate the redux library - a solution that allows for application (global) level state.

This would mean creating an error handling component that is responsible for reading errors from the global state and displaying an error message (however that should be done) and manages their dismissal (automatic, or manual, or both). Each part of the application that can then produce an error simply has to add an error to the global state and respond accordingly.

Aside from this, a tool like Sentry (which has a free tier) could be good for collecting and resolving errors that are occurring unexpectedly.

I have a proposal for this which involves `useContext` and `useReducer` in symphony to replicate the `redux` library - a solution that allows for application (global) level state. This would mean creating an error handling component that is responsible for reading errors from the global state and displaying an error message (however that should be done) and manages their dismissal (automatic, or manual, or both). Each part of the application that can then produce an error simply has to add an error to the global state and respond accordingly. Aside from this, a tool like Sentry (which has a free tier) could be good for collecting and resolving errors that are occurring unexpectedly.
Author
Owner

This sounds good 👍

Error reporting via Sentry or whatever can probably be treated as a separate problem (agree it would be useful though.)

This sounds good 👍 Error reporting via Sentry or whatever can probably be treated as a separate problem (agree it would be useful though.)
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: rob/clipper#11
No description provided.