Some React states gone inside callback of socket.io

前端 未结 0 1803
醉酒成梦
醉酒成梦 2020-12-02 23:00

I have code as follow:

console.log("1st message : ", this.state.message);
console.log("1st channel: ", this.state.channel);
socket.emit(&q         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题