anoma / namada-interface

Apache License 2.0
77 stars 95 forks source link

Namadillo persist cache #818

Closed emccorson closed 1 month ago

emccorson commented 1 month ago

Adds persistent cache for react query.

To test this, open a proposal page such as http://localhost:5173/governance/proposal/0. The first time the page loads, the data will be fetched from the RPC. Refresh the page and you should see that the data loads faster since it has been persisted in the browser. You can also see there is an entry in Indexed DB.

I still need to figure out how to use the persisted data to speed up the proposals table, so for the moment the proposals table does not use the cached data. This will be done in a later PR.

github-actions[bot] commented 1 month ago

🚀 Deployed on https://pull-request-818--wallet-development-heliax-dev.netlify.app