Tags: apipshato/react-intersection-observer
Tags
fix: use WeakMap to avoid memory leak (thebuilder#463) IntersectionObserver roots were tracked in a Map. This ensures it's possible to reuse the Intersection Observer instance if they share the same options. Changed to use a WeakMap, so unused root elements can be garbage collected. Closes thebuilder#462
PreviousNext