dapp-scaffold icon indicating copy to clipboard operation
dapp-scaffold copied to clipboard

Action State and Buttons

Open DonnySolana opened this issue 2 years ago • 0 comments

Currently actions triggered by buttons are stateless. When you click to send a transaction the user is not aware if anything happened until the actions responds from the call being made. There could be a few approaches to solving this issue.

Solution Ideas:

In the case of a button,

  • Manage action states in such a way that when clicked the button state is disabled until a response is received and then re enabled.
  • Additionally produce an optional busy or spinner/loading modal that shows the user the transaction is processing and optionally automatically closes when done.

DonnySolana avatar Mar 10 '22 23:03 DonnySolana