-
Notifications
You must be signed in to change notification settings - Fork 305
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
Replace MultipleAccountsFetcher
with a fetch
shim that coalesces account info requests coming from any code
#296
Comments
See comment here for suggested approach to override |
MultipleAccountsFetcher
with a fetch
shim that coalesces account info requests coming from any code
I took a look at this and I think we should take a different approach rather than using a |
Thanks for taking a look! Magic is sometimes bad, yes. In the case we're dealing with here the calls are going through third-party code ( explorer/app/components/common/Address.tsx Lines 105 to 106 in e7ee73d
Things we could do:
As the person who suggested it, I obviously prefer the general solution of shimming |
I think caching makes sense to do in an override because it can be generically implemented. This coalescing is inherently not possible to do generically and is brittle in the case that the response structure of getMultipleAccounts and getAccountInfo change independently |
Describe the bug
The code that's supposed to coalesce multiple account fetches behind a single
getMultipleAccounts
is not doing that. They're all getting coalesced into batches of 1.To Reproduce
Screenshots
Additional context
This code, here.
explorer/app/providers/accounts/index.tsx
Lines 135 to 145 in 15a5268
Suspicious function name in the stack trace:
findAllByMintList
.Suggested implementation
#298 (comment)
The text was updated successfully, but these errors were encountered: