Skip to content

TrackOnView

TrackOnView(__namedParameters): ReactElement

Emits event exactly once, the first time its host element is viewport-qualified (plan 144 TASK-13 / REQ-21). Falls back to firing on render when IntersectionObserver is unavailable (AC-10 degradation). The one-shot guard is a ref that survives React Strict Mode’s development double-mount, so the event fires once, not twice (AC-12). Renders its children in the host element and never throws without a provider (AC-13).

TrackOnViewProps

ReactElement