From 7e3bdb0becc3a6d31f23716921bd2ead95bed035 Mon Sep 17 00:00:00 2001 From: Dmitry Ishkov Date: Thu, 5 Dec 2019 02:57:19 +0400 Subject: [PATCH] Support React 16.9 (#681) componentWillReceiveProps => UNSAFE_componentWillReceiveProps --- src/Autosuggest.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Autosuggest.js b/src/Autosuggest.js index 044b5d3f..d1b93114 100644 --- a/src/Autosuggest.js +++ b/src/Autosuggest.js @@ -121,7 +121,8 @@ export default class Autosuggest extends Component { this.suggestionsContainer = this.autowhatever.itemsContainer; } - componentWillReceiveProps(nextProps) { + // eslint-disable-next-line camelcase, react/sort-comp + UNSAFE_componentWillReceiveProps(nextProps) { if (shallowEqualArrays(nextProps.suggestions, this.props.suggestions)) { if ( nextProps.highlightFirstSuggestion &&