@pear-protocol/symmio-client 0.2.15 → 0.2.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25311,13 +25311,7 @@ function useSymmWs(params = {}) {
25311
25311
  );
25312
25312
  if (executionsUnsub) unsubscribers.push(executionsUnsub);
25313
25313
  return () => {
25314
- if (unsubscribers.length > 2) {
25315
- unsubscribers.forEach((unsubscribe) => unsubscribe());
25316
- } else {
25317
- removeOnConnect();
25318
- removeOnDisconnect();
25319
- ws.unsubscribeAll();
25320
- }
25314
+ unsubscribers.forEach((unsubscribe) => unsubscribe());
25321
25315
  };
25322
25316
  }, [symmCoreClient, accountAddress, chainId, queryClient, setConnected]);
25323
25317
  return { isConnected };