react-analytics-widget icon indicating copy to clipboard operation
react-analytics-widget copied to clipboard

GoogleDataChart render issues

Open priyankad93 opened this issue 6 years ago • 1 comments

When config prop is changed, GoogleDataChart (wrt user input for start and end date) doesn't render charts from changed prop value. Is there a workaround for it?

priyankad93 avatar Nov 14 '19 00:11 priyankad93

Not yet but you can add a getDerivedStateFromProps method to the component to handle this.

revolunet avatar Nov 14 '19 14:11 revolunet