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

Support wallets with 100+ Summoners #1

Open
murderteeth opened this issue Oct 13, 2021 · 0 comments
Open

Support wallets with 100+ Summoners #1

murderteeth opened this issue Oct 13, 2021 · 0 comments

Comments

@murderteeth
Copy link
Owner

murderteeth commented Oct 13, 2021

RE: andrecronje/rarity#87 (comment)

useSummoners() currently gets all of a wallet's summoners, then tries to get all of their metadata in a single MultiCall. If the sdk is pulling a lot of summoner expansion fields, this fails to scale as the summoner count gets towards 100.

Redesign useSummoner to support paging. Consider the design of useQuery and fetchMore from apollo client's react library: https://www.apollographql.com/docs/react/data/queries/

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

No branches or pull requests

1 participant