Popper JS memory leak issues #788
Labels
component: ic-button
The generic component, includes both the web component and the React component
component: ic-tooltip
The generic component, includes both the web component and the React component
Milestone
Summary of the bug
Popper JS is causing memory leak issues.
🪜 How to reproduce
Popper is adding scroll and resize event listeners to the window. The event handler triggers a Popper forceUpdate on scroll which is expensive and blocks the scroll which is the reason for the performance issue. The Stencil issue we thought it was (#682) compounds the Popper issue as none of these event listeners are being removed.
Looks like someone has spotted a memory leak issue in the tutorial and we've followed that. floating-ui/popper.js.org#47 This has been tried and doesn't fix our memory leak issues by itself, but will probably still need changing.
Could either be updating how we add and remove event listeners, or we may need to look into converting to floating ui which could turn out to be a lot of work.
🧐 Expected behaviour
No performance issues.
The text was updated successfully, but these errors were encountered: