Rari-Capital / rari-dApp

Rari Capital's Web3 Portal.
https://app.rari.capital
GNU Affero General Public License v3.0
151 stars 69 forks source link

Consider refactoring hooks to not return types with functions (BNs) #418

Open transmissions11 opened 3 years ago

transmissions11 commented 3 years ago

We could use this new react-query feature to significantly speed up our UI via caching requests in localstorage, but it does not support deserializing a BN from localstorage. If we refactored or hooks not to return BNs, we could use this new feature.

https://react-query.tanstack.com/plugins/createLocalStoragePersistor