You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, this is the correct way to clean up connection events listeners when component unmounts.
You can also take a look at useEventListener hook from our ably/react module for some inspiration if you would like to extract that bit of code into a reusable hook for your application.
VeskeR
added
the
documentation
Improvements or additions to public interface documentation (API reference or readme).
label
Jun 28, 2024
Hi
If I use React
Does that the right way to clean up that listener when the component unmounts?
┆Issue is synchronized with this Jira Task by Unito
The text was updated successfully, but these errors were encountered: