Skip to content

Commit 528be4c

Browse files
committed
fix: react deprecation
1 parent 460c30a commit 528be4c

File tree

4 files changed

+3422
-23997
lines changed

4 files changed

+3422
-23997
lines changed

client/routes/order-details/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class OrderDetails extends Component {
1818
componentDidMount() {
1919
this._updateOrder(this.props.match.params.id);
2020
}
21-
componentWillReceiveProps(nextProps) {
21+
componentDidReceiveProps(nextProps) {
2222
if (this.props.match.params.id !== nextProps.match.params.id) {
2323
this._updateOrder(nextProps.match.params.id);
2424
}
@@ -60,4 +60,4 @@ class OrderDetails extends Component {
6060
}
6161
}
6262

63-
export default OrderDetails;
63+
export default OrderDetails;

0 commit comments

Comments
 (0)