react-responsive-carousel icon indicating copy to clipboard operation
react-responsive-carousel copied to clipboard

Using UNSAFE_componentWillReceiveProps error

Open ariannargesi opened this issue 6 years ago • 7 comments

I get this error when I try to use react-responsive-carousel with thumbnail index.js:1 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: Thumbs

ariannargesi avatar Jun 06 '20 20:06 ariannargesi

i have the same error

Guilleanto avatar Jul 23 '20 14:07 Guilleanto

Same here

lucas-neuhauss avatar Oct 06 '20 17:10 lucas-neuhauss

How can I solve this problem? I also get the same warning. What other package would you recommend for using carousel with thumbnails ?

ozanorkun avatar Feb 10 '21 11:02 ozanorkun

same issue

shensven avatar Mar 26 '21 02:03 shensven

As a workaround I add the prop showThumbs={false} and the error disappears

Rogant avatar Apr 04 '21 22:04 Rogant

As a workaround I add the prop showThumbs={false} and the error disappears

Im getting the same console error here - but don't want to resort to disabling thumbs

darduf avatar May 06 '21 07:05 darduf

I addressed this in https://github.com/leandrowd/react-responsive-carousel/pull/656.

henckellbach avatar Oct 06 '21 14:10 henckellbach