react-flip-move icon indicating copy to clipboard operation
react-flip-move copied to clipboard

React 18: Console Errors when using Flip Move "Using UNSAFE_componentWillReceiveProps" "findDOMNode is deprecated in StrictMode"

Open douglasg14b opened this issue 2 years ago • 3 comments

This seems like things have been deprecated that flipmove is using?

I'm using React 18

image

react_devtools_backend.js:3973 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: FlipMove

And

Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of FlipMove which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here:

douglasg14b avatar Apr 25 '22 06:04 douglasg14b

Have you tried fixing the issue? @douglasg14b

peterwiebe avatar May 24 '22 18:05 peterwiebe

Can you expand on that?

douglasg14b avatar May 24 '22 18:05 douglasg14b

@douglasg14b you can ignore my question. I have switched to https://github.com/aholachek/react-flip-toolkit instead since this library is no longer maintained.

peterwiebe avatar May 25 '22 16:05 peterwiebe