Open adileo opened 1 year ago
Thanks for the suggestion!
Some time ago, this was the actual behavior. However, this had the following issue:
We can deal with this in two ways:
So unfortunately, I think it's better to keep things the way they are now.
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:
store.unsubscribe()
check ifcallbackArray
is empty then trigger astore.unSubscribeWebSocket
Any side issues that could arise from this?