@wpkernel/ui / VisiblePrefetchOptions
Interface: VisiblePrefetchOptions
Options for the useVisiblePrefetch hook.
Properties
once?
ts
optional once: boolean;If true, the prefetch will only be triggered once.
Default
ts
truerootMargin?
ts
optional rootMargin: string;The root margin for the IntersectionObserver.
See
https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/rootMargin
Default
ts
'200px'