UseIsSupported
katanakit-js / useIsSupported
Function: useIsSupported()
Section titled “Function: useIsSupported()”function useIsSupported(): boolean;Defined in: infrastructure/observer/observer.service.ts:50
Checks whether IntersectionObserver is available in the current environment.
Returns
Section titled “Returns”boolean
true if IntersectionObserver is supported.
Example
Section titled “Example”if (useIsSupported()) { // safe to use observer APIs}