score:1

Accepted answer

i solved this by checking nextprops compared to currentprops and if there was a change in them i then set the state causing a re render.

the reason why the right table (sell orders) didn't update is because there was buy data and sell data coming down the socket. the sell orders going first almost every time (that's why it would work periodically).

because i was not checking if the props changed, the state was getting set multiple times and i was unable to see the style.

componentwillreceiveprops(props) {
  if (this.props.data !== props.data) {
    this.setstate({previoustable: this.props.data});
  }
}

Related Query

More Query from same tag