You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: