react-bootstrap-table2 icon indicating copy to clipboard operation
react-bootstrap-table2 copied to clipboard

update component base on new react release.

Open maulikpatel-in opened this issue 4 years ago • 3 comments

in my console I got log like this:

`Warning: Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://fb.me/react-unsafe-component-lifecycles for details.

  • Move data fetching code or side effects to componentDidUpdate.
  • If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://fb.me/react-derived-state

Please update the following components: BootstrapTable, BootstrapTableContainer, DataProvider, PaginationDataProvider, PaginationHandler, StateProvider`

componentWillReceiveProps this method is considered legacy and some of the components still use this method. you can replace it with: https://reactjs.org/docs/react-component.html#static-getderivedstatefromprops

please check. :-)

maulikpatel-in avatar Aug 18 '20 14:08 maulikpatel-in

Any update on this issue? I’m getting a similar error:

react-dom.development.js?61bb:67 Warning: Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.

  • Move data fetching code or side effects to componentDidUpdate.
  • If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state

Please update the following components: BootstrapTable, BootstrapTableContainer, CellEditProvider, DataProvider, PaginationDataProvider, PaginationHandler, SortProvider, ToolkitProvider

samuel-anderson avatar Sep 08 '21 13:09 samuel-anderson

+1

jslmariano avatar Nov 22 '21 12:11 jslmariano

Duplicates #1308.

isherwood avatar Jun 23 '22 16:06 isherwood