citycoins/ui

⚡[FEAT] Improve page load times

Closed this issue · 1 comments

Is your feature request related to a problem? Please describe.

Possibly related to work in #102, currently the user has to go through the following every time they load the overall page for a CityCoin:

  • verify contract is initialized
  • verify contract is activated
  • then update data about the contract

The first two actions require separate API calls, and if there is any delay it flashes the incorrect state. These values should be hardcoded in the config with the API calls as a backup if they are not set.

Describe the solution you'd like

Boolean values for initialized and activated could be added here:

https://github.com/citycoins/citycoin-ui/blob/e7b1acfdb28643c247c2a0bba4cad46315e5f8ec/src/store/miami.js#L16-L22

Describe alternatives you've considered

None.

Additional context

None.

Fixed in #130