Open yishay-at-bay opened 2 months ago
Hi @yishay-at-bay !
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.
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