pawartur / AliteDefi

EthAmsterdam 2022 Hackaton Project
1 stars 2 forks source link

Sync all the initial fetches in ChainInfo component #6

Closed pawartur closed 2 years ago

pawartur commented 2 years ago

Right now we have multiple useEffect(...) calls that we try to run in reasonable order by calling them after particular models are updated.

Refactor the code to use a single useEffect(..) that fetches all we need and sets a single model we need.

pawartur commented 2 years ago

Done in 8721b2c45b19caca2d489c81f08d589a5f6542ef