Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(observer): fix of reobserve doesn't add observer to map
When new element already holds a ref to an observer and the previous element (that used the same observer) unobserves, it creates a broken state when that observer is deleted from map, but new element holds that ref and thinks it's ok to observe Essentially i'm bringing back part of the code deleted in #153, namely https://github.com/researchgate/react-intersection-observer/pull/153/files#diff-44cb04e2627c3ab84281b41d14880e5e822437f19144e8c14a6c95f7f7fa14bbL72 I also added tests to not to break this and #153 in the future
- Loading branch information