| 13 | } |
| 14 | |
| 15 | export interface Options extends IntersectionObserverInit { |
| 16 | unobserveOnEnter?: boolean |
| 17 | /** |
| 18 | * @deprecated Use setRef callback. |
| 19 | */ |
| 20 | target?: React.RefObject<Element | null> |
| 21 | /** |
| 22 | * @deprecated Use hook `useInViewEffect` to access observer callback. |
| 23 | */ |
| 24 | onEnter?: (entry: IntersectionObserverEntry, observer: IntersectionObserver) => void |
| 25 | /** |
| 26 | * @deprecated Use hook `useInViewEffect` to access observer callback. |
| 27 | */ |
| 28 | onLeave?: (entry: IntersectionObserverEntry, observer: IntersectionObserver) => void |
| 29 | } |
| 30 | |
| 31 | interface UseInView { |
| 32 | ( |
nothing calls this directly
no outgoing calls
no test coverage detected