explorer icon indicating copy to clipboard operation
explorer copied to clipboard

Automatically update balance for address upon state change

Open markmhendrickson opened this issue 3 years ago • 3 comments

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.

Screen Shot 2021-03-01 at 09 44 39

markmhendrickson avatar Mar 01 '21 08:03 markmhendrickson

Can we implement websockets to add this feature?

andresgalante avatar Aug 04 '22 19:08 andresgalante

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.

shamim-io avatar Jun 20 '23 19:06 shamim-io

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

andresgalante avatar Jun 29 '23 02:06 andresgalante