From 4490f98ad41e7b3d386ba3541fc0394a509404e5 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 bdaffd58..ee46d658 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 &&