Skip to content

Commit d0e408d

Browse files
fix: only run sendVitals once on initial load (#66)
1 parent 757bc1f commit d0e408d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/runtime/plugin.client.ts

-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@ const sendVitals = to => webVitals({
1313
export default defineNuxtPlugin(() => {
1414
const router = useRouter()
1515
router.afterEach(to => sendVitals(to))
16-
router.isReady().then(() => { sendVitals(router.currentRoute) })
1716
})

0 commit comments

Comments
 (0)