Function useBeacon

  • Returns {
        sendBeacon: (
            url: string,
            data?: string | Blob | FormData | URLSearchParams,
            options?: BeaconOptions,
        ) => boolean;
        get state(): BeaconState;
        subscribe(callback: (state: BeaconState) => void): () => boolean;
    }