Skip to content

Commit 4af5edd

Browse files
John SandersJohn Sanders
authored andcommitted
Run React code updater to change method names to UNSAFE_componentWillReceiveProps to be compatible with React 17
1 parent eed32da commit 4af5edd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/controllers/BoardContainer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class BoardContainer extends Component {
2525
}
2626
}
2727

28-
componentWillReceiveProps(nextProps) {
28+
UNSAFE_componentWillReceiveProps(nextProps) {
2929
// nextProps.data changes when external Board input props change and nextProps.reducerData changes due to event bus or UI changes
3030
const {data, reducerData, onDataChange} = this.props
3131
if (nextProps.reducerData && !isEqual(reducerData, nextProps.reducerData)) {

src/controllers/Lane.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class Lane extends Component {
6060
}
6161
}
6262

63-
componentWillReceiveProps(nextProps) {
63+
UNSAFE_componentWillReceiveProps(nextProps) {
6464
if (!isEqual(this.props.cards, nextProps.cards)) {
6565
this.setState({
6666
currentPage: nextProps.currentPage

src/widgets/InlineInput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class InlineInputController extends React.Component {
5353
}
5454
}
5555

56-
componentWillReceiveProps(nextProps) {
56+
UNSAFE_componentWillReceiveProps(nextProps) {
5757
this.setValue(nextProps.value)
5858
}
5959

0 commit comments

Comments
 (0)