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
useIntersectionObserver state is not reset when target element is changed, like if target is changed to null, the intersection state still report the pervious value
Steps to Reproduce
use useIntersectionObserver to observe an element and create a button to set the target to null afterwards
What is the expected behavior?
should handle state when the target of any other options pass to the hooks is changed