Skip to content

Issues with un-subscribing from real time broadcast with React 18 (Nextjs 12) #8573

Answered by chiubaca
chiubaca asked this question in Questions
Discussion options

You must be logged in to vote

resolved by upgrading to v2.0.0-rc.5.

Also the if (channelRef.current === null) {...} was not necessary and the cleanup function should be done with using either client.removeChannel(chan) or client.removeChannels()

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@chiubaca
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by chiubaca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants