Skip to content

Commit

Permalink
[7.14] [APM] Invalidate trackPageview (#107741) (#107829)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
dgieselaar and kibanamachine committed Aug 9, 2021
1 parent 2802fdf commit 56b16ef
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ 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 56b16ef

Please sign in to comment.