react-timeseries-charts icon indicating copy to clipboard operation
react-timeseries-charts copied to clipboard

React StrictMode causes warnings

Open davegravy opened this issue 6 years ago • 1 comments

🐛Bug report

Describe the bug Warnings reported when using React StrictMode

To Reproduce Steps to reproduce the behavior:

  1. Wrap ChartRow, TimeAxis, and YAxis components in <React.StrictMode>
  2. See warnings:

componentWillMount: Please update the following components to use componentDidMount instead: ChartRow

componentWillReceiveProps: Please update the following components to use static getDerivedStateFromProps instead: ChartRow, TimeAxis, YAxis

Expected behavior No warnings

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome
  • Version: 71.0.3578.98

davegravy avatar Feb 12 '19 05:02 davegravy

FYI / for reference: similar issue + PR that solves it in the react-vis repository https://github.com/uber/react-vis/pull/1253

dirkdevriendt avatar Nov 17 '19 14:11 dirkdevriendt