Skip to content
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

fix: [#1336] Adds check for if Window and MutationObserver has been d… #1437

Merged

Conversation

capricorn86
Copy link
Owner

…estroyed when triggering listeners

@capricorn86 capricorn86 linked an issue May 14, 2024 that may be closed by this pull request
@capricorn86 capricorn86 merged commit 909069b into master May 14, 2024
4 checks passed
@capricorn86 capricorn86 deleted the 1436-lots-of-npe-errors-logged-by-mutationlistener branch May 14, 2024 16:39
@thaggie
Copy link

thaggie commented May 14, 2024

Thanks, that was fast!

After creating the ticket I build the library locally to a) test that approach (which works fine) and b) try and work out the root cause.

The root cause was that we had old code in our jest setup that was providing it's own versions of requestAnimationFrame / cancelAnimationFrame - removing these stopped the issue for us.

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.

Lots of NPE errors logged by MutationListener
2 participants