Skip to content

Commit

Permalink
[APM] Invalidate trackPageview no route change
Browse files Browse the repository at this point in the history
Closes #107728.
  • Loading branch information
dgieselaar committed Aug 5, 2021
1 parent d187259 commit f936a7b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import { useTrackPageview } from '../../../../observability/public';
export function TrackPageview({ children }: { children: React.ReactElement }) {
const routePath = useRoutePath();

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

return children;
}

0 comments on commit f936a7b

Please sign in to comment.