Skip to content

Commit

Permalink
fix: Memory leak caused by caching event objects
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoyuan123 committed Jan 13, 2023
1 parent d51aa10 commit ec86bba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/polyfills/firstInputPolyfill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ const reportFirstInputDelayIfRecordedAndValid = () => {
callback(entry);
});
callbacks = [];
firstInputEvent = null;
}
}

Expand Down

0 comments on commit ec86bba

Please sign in to comment.