Skip to content

Commit

Permalink
refactor(packages/sui-react-web-vitals): report routeid if present
Browse files Browse the repository at this point in the history
  • Loading branch information
jordevo committed Dec 4, 2023
1 parent 524a2ce commit ae46e13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sui-react-web-vitals/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export default function WebVitalsReporter({
name: `cwv.${name.toLowerCase()}`,
amount,
path: pathname,
routeId: routeid,
...(routeid && {routeId: routeid}),
target,
loadState: attribution.loadState,
visibilityState: document.visibilityState,
Expand Down

0 comments on commit ae46e13

Please sign in to comment.