Overview
Currently, UI state only updates after a transaction is confirmed on-chain, which takes several seconds. Optimistic updates show the expected post-confirmation state immediately, making the UI feel fast and responsive.
Problem
After submitting a withdrawal, the UI shows a loading spinner for 5-10 seconds until confirmation. Users cannot see any feedback that their action was recorded, leading to double-submissions.
Proposed Solution
- Implement optimistic updates for: withdraw (immediately decrement claimable balance), cancel (immediately remove stream from list), top-up (immediately update stream end date)
- Roll back the optimistic state if the transaction fails
- Show a subtle
Confirming... indicator alongside the optimistic state
Acceptance Criteria
Overview
Currently, UI state only updates after a transaction is confirmed on-chain, which takes several seconds. Optimistic updates show the expected post-confirmation state immediately, making the UI feel fast and responsive.
Problem
After submitting a withdrawal, the UI shows a loading spinner for 5-10 seconds until confirmation. Users cannot see any feedback that their action was recorded, leading to double-submissions.
Proposed Solution
Confirming...indicator alongside the optimistic stateAcceptance Criteria