The way data flows when recieved from the socket server and into the components is not optimal. It was created quickly and will cause issues in the future.
Additional comment from discussion: Change the flow so that ideally all the processing is done on the server, making react only be responsible for displaying the data it receives from the server.
The way data flows when recieved from the socket server and into the components is not optimal. It was created quickly and will cause issues in the future.