Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix usePresence won't leave presence if unmount triggered during chan…
…nel attaching This fixes a race condition issue, where a React app might trigger a component unmount while channel is still in the `attaching` state, thus `presence.leave` was never called for a channel and member would remain there until app reload.
- Loading branch information