amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

Migrate instances of legacy `observeWithSharedInOb`/`unobserveWithSharedInOb` to `observeIntersections`/`unobserveIntersections`

Open dmanek opened this issue 5 years ago • 1 comments

As part of #35835, we added a couple of new methods observeIntersections/unobserveIntersections which use a shared InOb in a Window. There are still many components that are using the legacy observeWithSharedInOb/unobserveWithSharedInOb that we need to migrate.

dmanek avatar Sep 15 '21 23:09 dmanek

Based on this comment also look into updating observeIntersections to return a cleanup closure.

dmanek avatar Sep 16 '21 17:09 dmanek