Skip to content

Commit

Permalink
update lock file
Browse files Browse the repository at this point in the history
  • Loading branch information
kyliau committed Aug 29, 2022
1 parent 0cc5e58 commit c479b9b
Show file tree
Hide file tree
Showing 2 changed files with 11,864 additions and 4,305 deletions.
7 changes: 7 additions & 0 deletions packages/next/client/index.tsx
Expand Up @@ -909,6 +909,9 @@ export async function hydrate(opts?: { beforeRender?: () => Promise<void> }) {
const { component: app, exports: mod } = appEntrypoint
CachedApp = app as AppComponent
if (mod && mod.reportWebVitals) {
if (mod.reportWebVitals.config) {
setPerformanceRelayerConfig(mod.reportWebVitals.config)
}
onPerfEntry = ({
id,
name,
Expand All @@ -917,6 +920,7 @@ export async function hydrate(opts?: { beforeRender?: () => Promise<void> }) {
duration,
entryType,
entries,
attribution,
}: any): void => {
// Combines timestamp with random number for unique ID
const uniqueID: string = `${Date.now()}-${
Expand All @@ -938,6 +942,9 @@ export async function hydrate(opts?: { beforeRender?: () => Promise<void> }) {
? 'custom'
: 'web-vital',
}
if (attribution) {
webVitals.attribution = attribution
}
mod.reportWebVitals(webVitals)
}
}
Expand Down

0 comments on commit c479b9b

Please sign in to comment.