-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Small memory leak inside trackWebVitalMetric #32631
Comments
balazsorban44
added
kind: bug
and removed
bug
Issue was opened via the bug report template.
labels
Dec 18, 2021
3 tasks
kodiakhq bot
pushed a commit
that referenced
this issue
Feb 1, 2022
## Bug fixes #32631 - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [x] Errors have helpful link attached, see `contributing.md`
natew
pushed a commit
to natew/next.js
that referenced
this issue
Feb 16, 2022
## Bug fixes vercel#32631 - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [x] Errors have helpful link attached, see `contributing.md`
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of Next.js are you using?
12.0.7
What version of Node.js are you using?
16.4.2
What browser are you using?
Chrome
What operating system are you using?
macOS
How are you deploying your application?
next start
Describe the Bug
In
next/client/vitals.ts
there's a functiontrackWebVitalMetric
which gets called on each navigation that will push a metric object onto themetrics
-array. This causes a small memory leak, especially since this array is only used by an experimental hookuseExperimentalWebVitalsReport
.Expected Behavior
A) That the application doesn't contain any sudden memory leak
B) It would be good with an option that doesn't include experimental features
To Reproduce
metrics
will grow for each navigationThe text was updated successfully, but these errors were encountered: