Fix deprecated react lifecycle methods

This commit is contained in:
Jerko Steiner 2019-11-01 11:23:46 -04:00
parent 4b170b4e63
commit c53ef19ab4

View File

@ -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)