TS bindings and ledger version 1.18.1
When a react component using the useStreamQueries hook is unmounted the websocket fails with:
WebSocket connection to ‘ws://localhost:7575/v1/stream/query’ failed: WebSocket is closed before the connection is established.
When you then navigate back/cause the component to render again. The websocket refuses to connect again with the error:
useStreamQueries: WebSocket connection failed.
reconnectThreshold doesn’t change this behavior