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()
Component
<UseOnline v-slot="{ isOnline }">
Is Online: {{ isOnline }}
</UseOnline>
Type Declarations
/**
* Reactive online state.
*
* @see /useOnline
* @param options
*/
export declare function useOnline(options?: ConfigurableWindow): Ref<boolean>