-
Notifications
You must be signed in to change notification settings - Fork 44
Improve loading experience (like, a lot!) #777
Conversation
package.json
Outdated
@@ -33,10 +33,10 @@ | |||
"electron-updater": "^5.3.0" | |||
}, | |||
"devDependencies": { | |||
"@alephium/sdk": "0.7.2", | |||
"@alephium/token-list": "^0.0.8", | |||
"@alephium/sdk": "0.7.3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
...details, | ||
tokens, | ||
transactions: uniq([...address.transactions, ...transactionHashes]), | ||
transactions: uniq(address.transactions.concat(transactions.map((tx) => tx.hash))), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: we usually use spreading to do this, which is easier to read IMO.
uniq([...address.transactions, ...map(transactions, 'hash')])
or
uniq([...address.transactions, ...transactions.map((tx) => tx.hash)])
(because I'm sad about the typing of lodash's property shorthand map
which isn't strict...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed!
Incredible jump in performances. This feels extremely good. |
No description provided.