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

unsubscribe not work #11

Open
lotusfox777 opened this issue Dec 16, 2018 · 0 comments
Open

unsubscribe not work #11

lotusfox777 opened this issue Dec 16, 2018 · 0 comments

Comments

@lotusfox777
Copy link

lotusfox777 commented Dec 16, 2018

Hi, I did unsubscribe mqtt in the componentWillUnmount() { const { mqtt } = this.props; mqtt.unsubscribe(mqttTopic); } , but it does not work. It seems like not unsubscribe the topic. when I re-render component, the messageIdToTopic increase. it caused the mqtt.publish not work.
image
anyone can give suggestion?

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

No branches or pull requests

1 participant