From 940438f53f35f43828e293138323dfdbe0279f68 Mon Sep 17 00:00:00 2001 From: Evan Sharp Date: Fri, 18 Oct 2019 10:54:17 -0400 Subject: [PATCH] fix(Carousel): rename unsafe lifecycles --- src/Carousel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Carousel.js b/src/Carousel.js index 1504392c3..60db15ced 100644 --- a/src/Carousel.js +++ b/src/Carousel.js @@ -31,7 +31,7 @@ class Carousel extends React.Component { document.addEventListener('keyup', this.handleKeyPress); } - componentWillReceiveProps(nextProps) { + UNSAFE_componentWillReceiveProps(nextProps) { this.setInterval(nextProps); // Calculate the direction to turn if (this.props.activeIndex + 1 === nextProps.activeIndex) {