Skip to content

Conversation

matthewp
Copy link
Contributor

@matthewp matthewp commented May 2, 2019

This fixes the memory leak in the portal helper. The problem was that we
were never unregistering the call to domMutate.onNodeRemoval so there
was always a pointer to the MutationObserver that is observing the
document.

This adds a page in benchmark/portal-mem.html that can be used to find
memory leaks.

Fixes #684

This fixes the memory leak in the portal helper. The problem was that we
were never unregistering the call to `domMutate.onNodeRemoval` so there
was always a pointer to the MutationObserver that is observing the
document.

This adds a page in `benchmark/portal-mem.html` that can be used to find
memory leaks.

Fixes #684
Copy link
Contributor

@bmomberger-bitovi bmomberger-bitovi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Good catch on that

@matthewp matthewp merged commit 6e581f9 into master May 2, 2019
@matthewp matthewp deleted the rem branch May 2, 2019 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Memory leaks can be seen in SSR'ed pages when the {{portal}} helper is used.
2 participants