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).
Related pages
- Entry points: what each entry point exports.
@monarcode/effetch-query: the core entry point's namespaces and top-level names.Query: defining queries, keys and targets, and the cache from Effect.InfiniteQuery: queries that load a list one page at a time.Mutation: defining and running mutations.Entity: records whose every cached copy a write updates.QueryClient: the client, its options and hooks, and server rendering.@monarcode/effetch-query/react: the provider, the hooks and the boundaries.@monarcode/effetch-query/effetch: queries and mutations from Effetch endpoints.@monarcode/effetch-query/react-native: focus and online signals for React Native.@monarcode/effetch-query/react/tanstack-router: connecting a client to TanStack Router and Start.