Hi,
i am using latest React.
inside render():
<Sparkline data={this.state.sparklineData} />
and do update the state via
this.setState({sparklineData:sparkData})
All components do update except Sparkline. I have tried many things like this.forceUpdate(). Also debugged the this.state.sparklineData inside render(). The setState does the work and re-renders and the data comes through. console.log(this.state.sparklineData) proves it.
But the component simply doesnot re-render. I have put a default value into sparklineData which is:
this.state = {
sparklineData: [1,0,1,0,0,1,1,0,1,0,0,1,1,0,1,0,0,1,1,0,1,0,0,1,1,0,1,0,0,1,1,0,1,0,0,1,1,0,1,0,0,1,1,0,1,0,0,1,1,0,1,0,0,1],
}
and this WILL be rendered. After that no updates. Please help