Skip to content

Commit

Permalink
Merge pull request #1652 from SUI-Components/feat/inp-event-attribution
Browse files Browse the repository at this point in the history
feat(packages/sui-react-web-vitals): add INP eventType attribution
  • Loading branch information
nucliweb authored Oct 23, 2023
2 parents 44515d4 + 3b0b664 commit a5f5c5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/sui-react-web-vitals/src/index.js
Original file line number Diff line number Diff line change
@@ -112,7 +112,8 @@ export default function WebVitalsReporter({
amount,
path: hasPathOnRoute ? pathname : getNormalizedPathname(pathname),
target,
loadState: attribution.loadState
loadState: attribution.loadState,
...(attribution.eventType && {eventType: attribution.eventType})
})
}

0 comments on commit a5f5c5c

Please sign in to comment.