It looks like that store.unSubscribeWebSocket is never called.
This means that the client once a hook like useResource is used it will keep listening over websocket for updates that no one reads.
Fix proposal:
- within
store.unsubscribe() check if callbackArray is empty then trigger a store.unSubscribeWebSocket
Any side issues that could arise from this?
It looks like that
store.unSubscribeWebSocketis never called.This means that the client once a hook like
useResourceis used it will keep listening over websocket for updates that no one reads.Fix proposal:
store.unsubscribe()check ifcallbackArrayis empty then trigger astore.unSubscribeWebSocketAny side issues that could arise from this?