react-chartjs icon indicating copy to clipboard operation
react-chartjs copied to clipboard

direct assignment to this.state?

Open yocontra opened this issue 9 years ago • 2 comments

https://github.com/jhudson8/react-chartjs/blob/master/lib/core.js#L64

I'm having some issues where this.state.chart doesn't exist and is causing errors to be spewed all over, noticed this while checking things out. I don't think direct assignment of this.state is supported and might be why the issue is happening.

yocontra avatar Jun 16 '16 17:06 yocontra

That should def be a setState, I don't see why it would be anything else

austinpray avatar Jun 20 '16 19:06 austinpray

I think this is no problem, because the react-chartjs has no child components.

ledsun avatar Jul 11 '16 13:07 ledsun