-
Notifications
You must be signed in to change notification settings - Fork 25
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
App is connecting to action cable multiple times #9
Comments
@kesha-antonov Could you please help me with this? |
Hi! Did you try disconnect on unmount? |
@kesha-antonov I have tried. But no luck at all. Here is the action cable connector helper. https://github.com/chatwoot/chatwoot-mobile-app/blob/34-chat-screen/src/helpers/ActionCable.js Here I am using it, |
Did you try to call
on unmount? And also to unsubscribe from all channels? |
Yes |
@muhzi4u Did you find a solution for this? |
@cdesch No. I couldn't. Are you facing the same issue? |
@muhzi4u
|
@kesha-antonov It is happening production version too. |
@muhsin-k Did you ever solve this? I am having the same issue right now. Local Development is fine, production I get every message multiple times. |
Any updates here? Did you solve this? @marvwhere |
ActionCableConnector.js
Root Component
The connection to action cable is working here. But the problem is that whenever I tried to restart the app, It got connected to action cable again. So multiple events are firing. Is there any way to check the connection is already established or not?
The text was updated successfully, but these errors were encountered: