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 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.
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).
Pass one as the signals option of QueryClient.make; the default is browser. reactNativeSignals from @monarcode/effetch-query/react-native builds one from React Native's AppState and NetInfo.
Prop
Type