Team-uMigrate / umigrate

Source code for the uMigrate project
13 stars 2 forks source link

Mobile: Move fetch calls out of the constructor and into componentDidUpdate() #317

Closed deandrebaker closed 3 years ago

deandrebaker commented 3 years ago

We should move any api calls that are inside the constructor for Containers to be inside the componentDidMount function. This way, we don't update the state of the component before it has been mounted.