Skip to content

Commit

Permalink
merge effects
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Feb 1, 2022
1 parent 265381e commit 75bb710
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/next/client/index.tsx
Expand Up @@ -1010,12 +1010,10 @@ function Root({
// don't cause any hydration delay:
React.useEffect(() => {
measureWebVitals(onPerfEntry)
}, [])

// Flush buffer on mount
React.useEffect(() => {
flushBufferedVitalsMetrics()
}, [])

return children as React.ReactElement
}

Expand Down

0 comments on commit 75bb710

Please sign in to comment.