Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Improve loading experience (like, a lot!) #777

Merged
merged 5 commits into from
Aug 14, 2023
Merged

Improve loading experience (like, a lot!) #777

merged 5 commits into from
Aug 14, 2023

Conversation

nop33
Copy link
Member

@nop33 nop33 commented Aug 9, 2023

No description provided.

@nop33 nop33 requested a review from mvaivre August 9, 2023 09:39
src/api/fetchRetry.ts Outdated Show resolved Hide resolved
Base automatically changed from animated-qr-code to master August 9, 2023 11:45
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",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be updated

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

src/api/fetchRetry.ts Outdated Show resolved Hide resolved
...details,
tokens,
transactions: uniq([...address.transactions, ...transactionHashes]),
transactions: uniq(address.transactions.concat(transactions.map((tx) => tx.hash))),
Copy link
Member

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...)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed!

@mvaivre
Copy link
Member

mvaivre commented Aug 14, 2023

Incredible jump in performances. This feels extremely good.

@nop33 nop33 requested a review from mvaivre August 14, 2023 14:56
@nop33 nop33 merged commit f7a2002 into master Aug 14, 2023
4 checks passed
@nop33 nop33 deleted the fetch-tokens branch August 14, 2023 15:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants