MCPcopy Create free account
hub / github.com/bitmap/react-hook-inview / Options

Interface Options

src/useInView.ts:15–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13}
14
15export 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
31interface UseInView {
32 (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected