Skip to content
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

[React-Hooks] usePresence unsubscribes all listeners on unmount and run Presence.leave even if connection has been terminated #1610

Closed
ttypic opened this issue Feb 6, 2024 · 1 comment · Fixed by #1611
Assignees

Comments

@ttypic
Copy link
Collaborator

ttypic commented Feb 6, 2024

We need to fix usePresence hook behavior. Currently,

  • it unsubscribes all listeners on unmount, not just the ones it attached inside the hook.
  • run Presence.leave even if connection has been terminated it leads to errors when client has been closed
Copy link

sync-by-unito bot commented Feb 6, 2024

➤ Automation for Jira commented:

The link to the corresponding Jira issue is https://ably.atlassian.net/browse/SDK-4078

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant