@pear-protocol/symmio-client 0.2.15 → 0.2.17
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.
package/dist/react/index.js
CHANGED
|
@@ -24690,6 +24690,7 @@ function useSymmPositions(params) {
|
|
|
24690
24690
|
const resolvedAddress = accountAddress ? void 0 : address;
|
|
24691
24691
|
const chainId = params.chainId ?? ctxChainId;
|
|
24692
24692
|
const internalEnabled = !!symmCoreClient && !!(accountAddress || resolvedAddress);
|
|
24693
|
+
console.log({ accountAddress, resolvedAddress, chainId, internalEnabled });
|
|
24693
24694
|
return reactQuery.useQuery({
|
|
24694
24695
|
...params.query,
|
|
24695
24696
|
queryKey: symmKeys.positions({
|
|
@@ -25313,13 +25314,7 @@ function useSymmWs(params = {}) {
|
|
|
25313
25314
|
);
|
|
25314
25315
|
if (executionsUnsub) unsubscribers.push(executionsUnsub);
|
|
25315
25316
|
return () => {
|
|
25316
|
-
|
|
25317
|
-
unsubscribers.forEach((unsubscribe) => unsubscribe());
|
|
25318
|
-
} else {
|
|
25319
|
-
removeOnConnect();
|
|
25320
|
-
removeOnDisconnect();
|
|
25321
|
-
ws.unsubscribeAll();
|
|
25322
|
-
}
|
|
25317
|
+
unsubscribers.forEach((unsubscribe) => unsubscribe());
|
|
25323
25318
|
};
|
|
25324
25319
|
}, [symmCoreClient, accountAddress, chainId, queryClient, setConnected]);
|
|
25325
25320
|
return { isConnected };
|