Persist proposal data and show in proposal info components
Refactor proposal info page components
Move dependencies from root to namadillo
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.
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.