paradigmxyz / rivet

Developer Wallet & DevTools for Anvil
MIT License
844 stars 73 forks source link

Enhancement: Loading state for updating ERC20 balances #62

Closed jxom closed 1 year ago

jxom commented 1 year ago

The Request

The ability to see loading feedback in the UI when a user sets their ERC20 balance.

Problem

Right now, when a user sets a balance on one of their ERC20 tokens on the token list screen, there is no loading UI for the background async work happening for useSetErc20Balance.

Solution

As a user, I would expect to see some loading indicator (ie. a spinner to the left of the input field) in the UI to tell me that an ERC20 token's balance is currently updating.