Skip to content

Commit 9fa9257

Browse files
committed
fix: update dependency arrays to include clientTransport
1 parent d54a6b2 commit 9fa9257

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/apps/perps/hooks/useHyperliquid.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export function useHyperliquid() {
191191
} finally {
192192
setIsLoading(false);
193193
}
194-
}, []);
194+
}, [clientTransport]);
195195

196196
const setupHyperliquid = useCallback(async () => {
197197
// Check for Imported Account logic again to ensure valid signer
@@ -242,7 +242,7 @@ export function useHyperliquid() {
242242
} finally {
243243
setIsLoading(false);
244244
}
245-
}, [address, checkSetupStatus]);
245+
}, [address, checkSetupStatus, clientTransport]);
246246

247247
const loadBalance = useCallback(async () => {
248248
if (!address) return;
@@ -392,7 +392,7 @@ export function useHyperliquid() {
392392
setIsLoading(false);
393393
}
394394
},
395-
[address, setupStatus, loadBalance]
395+
[address, setupStatus, loadBalance, clientTransport]
396396
);
397397

398398
// Call checkSetupStatus on mount to initialize the address

0 commit comments

Comments
 (0)