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

Commit 049388f

Browse files
committed
Fix deprecated React functions
1 parent 5ed5ace commit 049388f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/control-component-factory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ function createControlClass(s) {
157157
this.handleLoad();
158158
}
159159

160-
componentWillReceiveProps({ modelValue }) {
160+
UNSAFE_componentWillReceiveProps({ modelValue }) {
161161
if (modelValue !== this.props.modelValue) {
162162
this.setViewValue(modelValue);
163163
}

src/components/form-component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ function createFormClass(s = defaultStrategy) {
100100
}
101101
}
102102

103-
componentWillReceiveProps(nextProps) {
103+
UNSAFE_componentWillReceiveProps(nextProps) {
104104
if (containsEvent(nextProps.validateOn, 'change')) {
105105
this.validate(nextProps);
106106
}

0 commit comments

Comments
 (0)