# Signals (https://effetch-query.monarcode.dev/docs/reference/signals)

`Signals` tells a client when the app regains focus or the device comes back online. Import it from the core entry point:

```ts
import { Signals } from "@monarcode/effetch-query";
```

Its exports follow, grouped by the guide that covers them, each with its
docs. Your editor shows the same docs, with an example, when you hover the
name.

## Focus and online signals

Guide: [Focus and online signals](https://effetch-query.monarcode.dev/docs/client#focus-and-online-signals).

### Signals.browser

The browser's signals, the default: focus is the page becoming visible again, and online follows `navigator.onLine`. Without a DOM, such as on a server or in React Native, they never change.

### Signals.none

Signals that never change: no query refetches on focus or reconnect. The default is [`browser`](https://effetch-query.monarcode.dev/docs/reference/signals#browser).

### Signals.Signals

Where a client hears that the app regained focus or the device came back online. Queries in use refetch on these when they're stale (the `refetchOnFocus` and `refetchOnReconnect` options).

Pass one as the `signals` option of `QueryClient.make`; the default is [`browser`](https://effetch-query.monarcode.dev/docs/reference/signals#browser). `reactNativeSignals` from `@monarcode/effetch-query/react-native` builds one from React Native's `AppState` and NetInfo.

| Prop     | Type     | Description                                                                 |
| -------- | -------- | --------------------------------------------------------------------------- |
| `focus`  | `object` | Changes each time the app regains focus. Only changes count, not the value. |
| `online` | `object` | Whether the device is online. Going from `false` to `true` is a reconnect.  |