-
Notifications
You must be signed in to change notification settings - Fork 5
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
Conversation
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. |
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. |
I've created a new PR to improve the loading experience: #165 |
@@ -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, []) |
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: what about separating the useAppSelector calls from the selector factories with a new line?
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.
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.
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.
Okay, very nit anyway :)
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.
All good!
src/store/assets/assetsActions.ts
Outdated
|
||
dispatch(loadingStarted()) | ||
|
||
let metadata = undefined |
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: this could just be
let metadata
No description provided.