UseIntersectionObserverReturn
Defined in: src/hooks/useIntersectionObserver/useIntersectionObserver.types.ts:14
Type Parameters
T
T extends Element
Properties
entry
entry:
IntersectionObserverEntry|null
Defined in: src/hooks/useIntersectionObserver/useIntersectionObserver.types.ts:18
Latest IntersectionObserverEntry or null before the first callback.
isIntersecting
isIntersecting:
boolean
Defined in: src/hooks/useIntersectionObserver/useIntersectionObserver.types.ts:20
Convenience boolean — entry?.isIntersecting ?? false.
ref()
ref: (
instance) =>void| () =>VoidOrUndefinedOnly
Defined in: src/hooks/useIntersectionObserver/useIntersectionObserver.types.ts:16
Ref callback to attach to the observed element.
Parameters
instance
T | null
Returns
void | () => VoidOrUndefinedOnly