Skip to content

Android socket event is global,and open new socket the old event is still there #29

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

Open
huangjilaiqin opened this issue Dec 20, 2016 · 0 comments

Comments

@huangjilaiqin
Copy link

image
first I just close socket in componentWillUnmount,but when I navigatior to this Sence the register function will be called twice, then I navigator.pop and navigator.push the sence again, the register function will be called 3 times. It seems the register function was storage at global queue!!!
I solve my problem: register 'do nothing function ' at componentWillUnmount,if not myTest event fun,have call setState,it will lead to excpetion:setState Can only update a mounted or mounting component.

Do I make myself clear?

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