-
Notifications
You must be signed in to change notification settings - Fork 410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to reset the INP calculation #448
Comments
Hi @Mattstir , we're not looking to add this functionality to this library at this time for the reasons explained here: #433 (comment)
But let's leave this issue open so others can comment. FYI: @spetroll |
Hi @tunetheweb PS: Thanks for providing this useful package! :) |
Hi,
it would be awesome if the package would offer a
resetINP
function or something similar.Use case
We would need this feature as we take a look at the "subpages" of SPAs as individual pages and would be highly interested in the individual INP values of them. Because of the way the entries are collected in
longestInteractionList
this of course is not really possible.Possible Solution
I guess clearing
prevInteractionCount, prevInteractionCount, longestInteractionMap
in this new reset function should be enough? Or do I miss something here?Value
This clear function would allow for more different use cases (in combination with the already present
reportAllChanges: true
) while increasing the complexity and package size only slightly. I think this is a valuable addition!Thanks!
The text was updated successfully, but these errors were encountered: