useBalance return type is inconsistent #3471
Unanswered
CloudLooks
asked this question in
Q&A
Replies: 2 comments 1 reply
-
|
I'm also experiencing this with the result of |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
this is so funny (can confirm that it happens with useBalance in 2.14.16) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
version 1.4.1
I'm noticing odd behavior in useBalance's return
data.valueThe arguments are
{ address, formatUnits: 'wei', token: undefined }. The first few times this hook runs, the return value is a string. After a few render loops, the return value becomes a bigint as expected.eg on Arbitrum, my balance is
0.05.the same query starts returning the bigint representation of this value after a few renders
50000000000000000nBeta Was this translation helpful? Give feedback.
All reactions