-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Miscellaneous fixes #502
Miscellaneous fixes #502
Conversation
floryst
commented
Nov 10, 2023
- Allow selection of text in the message list
- completely disconnect the ResizeObserver on unmount
- Log out global errors and use a fallback message for error reporting
✅ Deploy Preview for volview-dev ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Objectively better
@@ -5,7 +5,11 @@ export function useGlobalErrorHook() { | |||
const messageStore = useMessageStore(); | |||
|
|||
const onError = (event: ErrorEvent) => { | |||
messageStore.addError('Application error (click for details)', event.error); | |||
console.error(event); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good! Thinking we should send more errors to Sentry via:
Sentry.captureException
https://docs.sentry.io/platforms/javascript/usage/
or
Sentry.init({
dsn: 'https://your-sentry-server-dsn',
integrations: [
new CaptureConsole({
levels: ['error']
})
],
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this idea! I'll cover this in a later PR.