From c53ef19ab450054715a6af521a7ba276db2b9452 Mon Sep 17 00:00:00 2001 From: Jerko Steiner Date: Fri, 1 Nov 2019 11:23:46 -0400 Subject: [PATCH] Fix deprecated react lifecycle methods --- packages/client/src/crumbs/HistoryCrumbs.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/crumbs/HistoryCrumbs.tsx b/packages/client/src/crumbs/HistoryCrumbs.tsx index 04e627f..c5e9499 100644 --- a/packages/client/src/crumbs/HistoryCrumbs.tsx +++ b/packages/client/src/crumbs/HistoryCrumbs.tsx @@ -34,7 +34,7 @@ export const HistoryCrumbs = withHistory( } } - componentWillMount() { + componentDidMount() { this.handleChange(this.props.history.location.pathname) this.unlisten = this.props.history.listen((location, action) => { this.handleChange(this.props.history.location.pathname)