Skip to content

Commit

Permalink
Fixed an issue with leaking intersection observer (#1104)
Browse files Browse the repository at this point in the history
  • Loading branch information
bonkalol authored Jan 31, 2024
1 parent 4a6d6b5 commit 232229b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export default class IntersectionObserverEngine extends AbstractEngine {
watcher.unwatch = () => {
unwatch();
this.observers.delete(watcher);
this.removeIntersectingTarget(observer.value, watcher.target);

let
observerHasWatchers = false,
Expand Down

0 comments on commit 232229b

Please sign in to comment.