Skip to Content
Effetch Query
Reference

Signals

Every member of the Signals namespace: where a client hears about focus and reconnects.

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

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

Its exports follow, grouped by the guide that covers them. Each one has the first paragraph of its docs, and what it needs and how it fails; your editor shows the rest, with an example, when you hover the name.

Focus and online signals

Guide: 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.

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).

On this page