I am currently using firebase realtime database to store information and am using component did mount to set the state. However, the states which are updated are initially s