From 0c350c75cafbdfcd17a11e370697f8139166d152 Mon Sep 17 00:00:00 2001 From: chopan123 Date: Mon, 28 Aug 2023 15:36:43 -0400 Subject: [PATCH] fix: added args to useEffect's dependency array in order to rerender if the args are changed fixes the stuck info --- packages/contracts/src/useContractValue.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/contracts/src/useContractValue.tsx b/packages/contracts/src/useContractValue.tsx index 306d04b..94ec602 100644 --- a/packages/contracts/src/useContractValue.tsx +++ b/packages/contracts/src/useContractValue.tsx @@ -76,7 +76,7 @@ export function useContractValue({ // Have this re-fetch if the contractId/method/args change. Total hack with // xdr-base64 to enforce real equality instead of object equality // shenanigans. - }, [contractAddress, method, xdrParams, activeChain, server]) + }, [contractAddress, method, xdrParams, activeChain, server, args]) return value }