aeternity / superhero-ui

Superhero UI
https://superhero.com
ISC License
19 stars 21 forks source link

Optimize name retrieving from backend #1134

Open davidyuk opened 3 years ago

davidyuk commented 3 years ago

we can get the names from the names list in the store, the stored name for an account is also the preferredChainName, as the backend sorts them that way when they are globally fetched. This reduces the number of requests.

_Originally posted by @thepiwo in https://github.com/aeternity/superhero-ui/pull/1133#discussion_r665165726_

davidyuk commented 3 years ago

we have switched to make a separate request in b685f6161e2f0e6ee8f3e47ec540d10e374af137, but I can't recall why cc: @AtanasKrondev

I'm planning to revert it in future PRs