Skip to content
This repository has been archived by the owner on Aug 23, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1217 from scottdover/run-codemod
Browse files Browse the repository at this point in the history
Fix deprecated react lifecycle methods
  • Loading branch information
davidkpiano committed Mar 17, 2020
2 parents 5ed5ace + 049388f commit 877b08a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/control-component-factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function createControlClass(s) {
this.handleLoad();
}

componentWillReceiveProps({ modelValue }) {
UNSAFE_componentWillReceiveProps({ modelValue }) {
if (modelValue !== this.props.modelValue) {
this.setViewValue(modelValue);
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/form-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function createFormClass(s = defaultStrategy) {
}
}

componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
if (containsEvent(nextProps.validateOn, 'change')) {
this.validate(nextProps);
}
Expand Down

0 comments on commit 877b08a

Please sign in to comment.