balance-wallet icon indicating copy to clipboard operation
balance-wallet copied to clipboard

Add spinner for fetching transactions

Open osdnk opened this issue 5 years ago • 0 comments

Motivation

There're a lot of things happened before making list of transactions visible and especially when there's a lot a them it's reasonable to display a feedback indicating that user is supposed to wait for a while.

Changes

Some conditions has to be filled in situation when spinner has be to be displayed. Transactions have not to be fetched for the first time, there have to be not loaded from storage (array of them has to be empty) and AddFundsInterstitial shouldn't be visible.

I achieved it by hooking into fetching process and tracking state of fetching in store by special hoc.

osdnk avatar Feb 27 '19 16:02 osdnk