You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the component holding the ref is unmounted while it was visible, the inView stays true.
Here's a fork of your basic example using useInView : https://codesandbox.io/s/react-intersection-observer-2rdzd
Click on the button to unmount the <Wrapper> component which holds the ref, the status at the top-right corner stays green