-
-
Notifications
You must be signed in to change notification settings - Fork 127
fix(web): ws-hook universal error handler #93
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
Conversation
polaroi8d
left a comment
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.
Is this solve that the platform shows error messages multiple times? LGTM (informal) but please wait for others with the merge.
@polaroi8d Yep. I'd also like @m8vago to check as well :) |
polaroi8d
left a comment
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.
Still okey for me.
fix(web): ws-hook single toast error handler fix: formatting fix(crux-ui): changed useWebSocket hook translation fix(crux-ui): moved ws to provider
f0d8406 to
250c1e3
Compare
WS_TYPE_DYO_ERRORwas handled multiple times by showing a toast, pages which use multipleuseWebSockethooks show multiple toasts.Implemented a universal error handler in
WebSocketClientwhich shows the toast, pages can still do their error handling logic usingWS_TYPE_DYO_ERROR.Added a WebSocket provider to create the socket only once.