Disconnet your network to see changes
Status: Online

useOnline

Reactive online state. A wrapper of useNetwork

Usage

import { useOnline } from '@vueuse/core'

const online = useOnline()

Type Declarations

/**
 * Reactive online state.
 *
 * @see   {@link /useOnline}
 * @param options
 */
export declare function useOnline(options?: ConfigurableWindow): Ref<boolean>

Source

SourceDemoDocs