@@ -287,7 +287,7 @@ export function* startWallet(action) {
287
287
288
288
/**
289
289
* This saga will load both HTR and DEFAULT_TOKEN (if they are different)
290
- * and dispatch actions to asynchronously load all registered tokens.
290
+ * and dispatch actions to asynchronously load all registered tokens forcefully .
291
291
*
292
292
* Will throw an error if the download fails for any token.
293
293
* @returns {string[] } Array of token uid
@@ -298,9 +298,12 @@ export function* loadTokens() {
298
298
299
299
// fetchTokenData will throw an error if the download failed, we should just
300
300
// let it crash as throwing an error is the default behavior for loadTokens
301
- yield call ( fetchTokenData , htrUid ) ;
301
+ yield call ( fetchTokenData , htrUid , true ) ;
302
302
303
303
if ( customTokenUid !== htrUid ) {
304
+ // custom tokens doesn't need to be forced to download because its history status
305
+ // will be marked as invalidated, and history will get requested the next time a user
306
+ // enters the history screen.
304
307
yield call ( fetchTokenData , customTokenUid ) ;
305
308
}
306
309
@@ -628,6 +631,7 @@ export function* onWalletReloadData() {
628
631
}
629
632
630
633
try {
634
+ // Here we force the download of tokens history
631
635
const registeredTokens = yield call ( loadTokens ) ;
632
636
633
637
const customTokenUid = DEFAULT_TOKEN . uid ;
0 commit comments