From 652a90901f1d43b950ddfe7d4e3ac339834b0004 Mon Sep 17 00:00:00 2001 From: Misha Moroshko Date: Fri, 6 Dec 2019 17:59:59 +1100 Subject: [PATCH] componentWillReceiveProps => UNSAFE_componentWillReceiveProps --- package.json | 2 +- src/Autowhatever.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 62b2bef..2385918 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-autowhatever", - "version": "10.2.0", + "version": "10.2.1", "description": "Accessible rendering layer for Autosuggest and Autocomplete components", "main": "dist/index.js", "repository": { diff --git a/src/Autowhatever.js b/src/Autowhatever.js index eb295c7..5a76aa9 100644 --- a/src/Autowhatever.js +++ b/src/Autowhatever.js @@ -92,7 +92,8 @@ export default class Autowhatever extends Component { this.ensureHighlightedItemIsVisible(); } - componentWillReceiveProps(nextProps) { + // eslint-disable-next-line camelcase, react/sort-comp + UNSAFE_componentWillReceiveProps(nextProps) { if (nextProps.items !== this.props.items) { this.setSectionsItems(nextProps); }