# useOnline

Whether the browser says the device has a connection, updating live. It is
a hint: a device can report online with no route, and `true` where the host
gives no signal.

This is a function exported by `@mapcairn/map`, checked against version 0.2.0.

## Signature

```ts
import { useOnline } from "@mapcairn/map";
 
function useOnline(): boolean;
```

## Returns

`boolean`

Source: [packages/map/src/services/hooks.ts:192](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/services/hooks.ts#L192)
