Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display tokens and NFTs in horizontal lists #164

Merged
merged 6 commits into from
Aug 8, 2023
Merged

Conversation

nop33
Copy link
Member

@nop33 nop33 commented Jul 18, 2023

No description provided.

@nop33 nop33 requested a review from mvaivre July 18, 2023 12:55
@mvaivre
Copy link
Member

mvaivre commented Aug 1, 2023

I sooo want to try this with a big wallet so I tries with the infamous "devnet" wallet 🙃 Unfortunately this seems to get the wallet stuck into infinite loading.

@nop33
Copy link
Member Author

nop33 commented Aug 2, 2023

Maybe you can try it with a smaller wallet (import the devnet wallet and skip the address discovery) and I can make a new PR for loading optimization.

@nop33
Copy link
Member Author

nop33 commented Aug 2, 2023

I didn't get in an infinite loading btw, but it took a while

image

@nop33
Copy link
Member Author

nop33 commented Aug 2, 2023

I've created a new PR to improve the loading experience: #165

@nop33 nop33 changed the base branch from contacts to master August 7, 2023 11:43
@nop33 nop33 requested a review from mvaivre August 7, 2023 11:43
@@ -33,8 +33,8 @@ interface AddressBoxProps extends PressableProps {
}

const AddressBox = ({ addressHash, isSelected, ...props }: AddressBoxProps) => {
const selectAddressesAssets = useMemo(makeSelectAddressesAssets, [])
const assets = useAppSelector((s) => selectAddressesAssets(s, [addressHash]))
const selectAddressesKnownFungibleTokens = useMemo(makeSelectAddressesKnownFungibleTokens, [])
Copy link
Member

Choose a reason for hiding this comment

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

Nit: what about separating the useAppSelector calls from the selector factories with a new line?

Copy link
Member Author

Choose a reason for hiding this comment

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

I kinda like keeping them close to each other, they are tightly coupled. If you have a strong opinion about this I can change it, but I'd like to keep it as it is.

Copy link
Member

Choose a reason for hiding this comment

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

Okay, very nit anyway :)

@nop33 nop33 requested a review from mvaivre August 8, 2023 07:32
Copy link
Member

@mvaivre mvaivre left a comment

Choose a reason for hiding this comment

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

All good!


dispatch(loadingStarted())

let metadata = undefined
Copy link
Member

Choose a reason for hiding this comment

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

Nit: this could just be

let metadata

@nop33 nop33 merged commit 2387115 into master Aug 8, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants