Skip to content

Commit

Permalink
componentWillReceiveProps => UNSAFE_componentWillReceiveProps
Browse files Browse the repository at this point in the history
  • Loading branch information
moroshko committed Dec 6, 2019
1 parent 653e945 commit 652a909
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
3 changes: 2 additions & 1 deletion src/Autowhatever.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 652a909

Please sign in to comment.