On tab visible, connectedCallback of panel triggers websocket messages before connection established #6236
Closed
3 tasks done
Labels
Bug
Current Bug in UI - Extra Attention
Checklist
The problem
When we are away from the tab for 5 minutes, we disconnect the panel from the DOM and disconnect the websocket connection.
When we navigate back to the tab, we will reconnect the panel to the DOM and re-open the connection.
Reconnecting the panel to the DOM will trigger
connectedCallback
, which in the case of<hui-image>
can involve getting a signed path to be able to show a preview of a camera. This request fails withWebSocket is already in CLOSING or CLOSED state.
Expected behavior
Steps to reproduce
Load demo integration, leave tab hidden for 5 minutes, navigate back.
Environment
State of relevant entities
Problem-relevant configuration
Javascript errors shown in your browser console/inspector
Additional information
The text was updated successfully, but these errors were encountered: