Do not call handleConnected in componentDidMount
Two reasons: 1. Avoid triggering "connected" event, because the device was already connected 2. It is not good to call `setState` in componentDidMount, which is effectively what it was doing.
Please register or sign in to comment