explorer
explorer copied to clipboard
Automatically update balance for address upon state change
I've noticed that the transactions for an address update automatically without a page refresh (e.g. transaction changes from pending to confirmed). However, the balance on the right-hand side doesn't appear to do so in tandem but only updates upon page refresh. This causes the various data points to get out of sync a bit and cause momentary confusion.

Can we implement websockets to add this feature?
Hi @andresgalante and @markmhx,
I was considering the possibility of incorporating the useEffect
hook in the frontend code in case there is a slight delay in the API response. Please correct me if my understanding is incorrect.
Additionally, it would be greatly appreciated if you could assist me in replicating the issue on my own system.
Thank you both for your support.
thanks @shamim-io for offering to help!
to reproduce it you can get testnet STX from the faucet and send a transaction on test net