Skip to content

Commit

Permalink
fix: added args to useEffect's dependency array in order to rerender …
Browse files Browse the repository at this point in the history
…if the args are changed

fixes the stuck info
  • Loading branch information
chopan123 authored Aug 28, 2023
1 parent 2c308b5 commit 0c350c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/contracts/src/useContractValue.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 0c350c7

Please sign in to comment.