UNPKG

@supunlakmal/hooks

Version:

A collection of reusable React hooks

14 lines (13 loc) 670 B
import { GeolocationState, UseGeolocationOptions } from './useGeolocation'; /** * A hook that provides debounced geolocation data. * Uses useGeolocation internally but debounces the resulting state updates. * Useful for reducing re-renders when location potentially updates frequently. * * @param options Options for the useGeolocation hook (e.g., enableHighAccuracy). * @param delay The debounce delay in milliseconds. * @returns The debounced GeolocationState object. */ export declare function useDebouncedGeolocation(options?: UseGeolocationOptions, delay?: number): GeolocationState; export type { GeolocationState }; export type { UseGeolocationOptions };