We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6a5d77d + 0ae4b24 commit a94d336Copy full SHA for a94d336
packages/sui-react-web-vitals/src/index.js
@@ -100,10 +100,10 @@ export default function WebVitalsReporter({
100
const pathname = getPathname(route)
101
const routeid = getRouteid()
102
const isAllowed = allowed.includes(pathname) || allowed.includes(routeid)
103
+ const target = getTarget({name, attribution})
104
- if (!isAllowed || !logger?.cwv || rating === RATING.GOOD) return
105
+ if (!isAllowed || !logger?.cwv || rating === RATING.GOOD || !target) return
106
- const target = getTarget({name, attribution})
107
const {loadState, eventType} = attribution
108
109
logger.cwv({
0 commit comments