Fix deprecated react lifecycle methods
This commit is contained in:
parent
4b170b4e63
commit
c53ef19ab4
@ -34,7 +34,7 @@ export const HistoryCrumbs = withHistory(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillMount() {
|
componentDidMount() {
|
||||||
this.handleChange(this.props.history.location.pathname)
|
this.handleChange(this.props.history.location.pathname)
|
||||||
this.unlisten = this.props.history.listen((location, action) => {
|
this.unlisten = this.props.history.listen((location, action) => {
|
||||||
this.handleChange(this.props.history.location.pathname)
|
this.handleChange(this.props.history.location.pathname)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user