From 3b0b6645c7637b93dc318f61dd44faa863e81d1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20Leo=CC=81n?= Date: Mon, 23 Oct 2023 13:25:49 +0200 Subject: [PATCH] feat(packages/sui-react-web-vitals): add INP eventType attribution --- packages/sui-react-web-vitals/src/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/sui-react-web-vitals/src/index.js b/packages/sui-react-web-vitals/src/index.js index dc930c480..78705b0d7 100644 --- a/packages/sui-react-web-vitals/src/index.js +++ b/packages/sui-react-web-vitals/src/index.js @@ -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}) }) }