Skip to content

Commit

Permalink
[APM] Invalidate trackPageview on route change (elastic#107741)
Browse files Browse the repository at this point in the history
Closes elastic#107728.
# Conflicts:
#	x-pack/plugins/apm/public/components/routing/track_pageview.tsx
  • Loading branch information
dgieselaar committed Aug 6, 2021
1 parent b2615e2 commit e34f988
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export function TelemetryWrapper({
const { component, render, path } = route;
const pathAsString = path as string;

useTrackPageview({ app: 'apm', path: pathAsString });
useTrackPageview({ app: 'apm', path: pathAsString, delay: 15000 });
useTrackPageview({ app: 'apm', path: pathAsString }, [pathAsString]);
useTrackPageview({ app: 'apm', path: pathAsString, delay: 15000 }, [pathAsString]);

if (component) {
return React.createElement(component, props);
Expand Down

0 comments on commit e34f988

Please sign in to comment.