RevokeCash / revoke.cash

❌ Revoke or update your token approvals
https://revoke.cash
MIT License
674 stars 238 forks source link

Cache token metadata and related calls #144

Open rkalis opened 1 year ago

rkalis commented 1 year ago

We use Tanstack Query for a lot of things, which helps with caching of calls and even caching in localstorage. But as it is right now we're only using this in top-level components because Tanstack Query uses hooks. But there is also a lot of data in the intermediate calls (e.g. getting token metadata) that could really benefit from caching.