-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
feat: Reconnect logic #9453
feat: Reconnect logic #9453
Conversation
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.
@iamsivin Please see the inline comments.
@iamsivin Message are updating after the disconnect. But the loader is not closing for some reason. chat-message-loading.mov |
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.
@iamsivin overall the code looks good to go, just had one suggestion, feel free to take that up separately
…BeforeUnmount` hook (#9581) This PR makes the following changes 1. Add `@vueuse/core` package, it supports Vue 2.7, we should start using this across the board 2. Add `useEmitter` composable, this adds a listener on the emitter on `onMounted` and automatically removes it on `onBeforeUnmount` 3. Use `useEmitter` & `useEventListener` from in `NetworkNotification.vue`
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Pull Request Template
Description
Fixes https://linear.app/chatwoot/issue/CW-1957/web-app-disconnects-and-doesnt-notify-about-incoming-messages-anymore
Type of change
How Has This Been Tested?
Loom Video
https://www.loom.com/share/076018aa84e248ae806fe3bd865165a1?sid=4e25a798-8796-4b1f-8f02-3c0013862d2f
Checklist: