Closed BenoitZugmeyer closed 1 month ago
Thanks @BenoitZugmeyer, I believe you're right, and that matches how the code looked in v3.5.2: https://github.com/GoogleChrome/web-vitals/blob/v3.5.2/src/onINP.ts#L247-L249
Looks like this got changed in the refactor for v4...
This has been released in v4.2.2
.
While reviewing the INP implementation, I noticed what I believe is a bug in
interactions.ts
. Currently,prevInteractionCount
is always0
, but based on the commentI believe
prevInteractionCount
should be set togetInteractionCount()
when reset, so the next timegetInteractionCountForNavigation()
is called it should return0
instead of the count of interactions that happened before the bfcache restore.