MCPcopy
hub / github.com/DesignRevision/shards-dashboard-react / componentDidUpdate

Method componentDidUpdate

src/withTracker.js:29–38  ·  view source on GitHub ↗
(prevProps)

Source from the content-addressed store, hash-verified

27 }
28
29 componentDidUpdate(prevProps) {
30 const currentPage =
31 prevProps.location.pathname + prevProps.location.search;
32 const nextPage =
33 this.props.location.pathname + this.props.location.search;
34
35 if (currentPage !== nextPage) {
36 trackPage(`${BASENAME}${nextPage}`);
37 }
38 }
39
40 render() {
41 return <WrappedComponent {...this.props} />;

Callers

nothing calls this directly

Calls 1

trackPageFunction · 0.85

Tested by

no test coverage detected