Joystream / pioneer

Governance app for Joystream DAO
https://pioneerapp.xyz/
GNU General Public License v3.0
44 stars 69 forks source link

Validator page responsiveness #4706

Closed eshark9312 closed 8 months ago

eshark9312 commented 8 months ago

> Design > Preview

vercel[bot] commented 8 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
dao ✅ Ready (Inspect) Visit Preview Dec 30, 2023 1:46am
pioneer-2 ✅ Ready (Inspect) Visit Preview Dec 30, 2023 1:46am
pioneer-2-storybook ✅ Ready (Inspect) Visit Preview Dec 30, 2023 1:46am
eshark9312 commented 8 months ago

@thesan The first loading takes 20+ seconds and the next time takes about 10s. That's due to useValidatorsList hook which fetches the detailed information for all validators. The provider only stores the validator addresses and memberships. Do you want all data to be stored in the provider instead of useValidatorsList hook?

thesan commented 8 months ago

Do you want all data to be stored in the provider instead of useValidatorsList hook?

Yes I think it would be good. Just make sure the add validator modal doesn't fetch the extra data please.