useQuery
Found in 1 package: apollo-client
apollo-client(20 releases)
@apollo/client@4.3.0-rc.2The `skip` option in `useQuery` and `useSubscription` has been deprecated in favor of `skipToken`.
@apollo/client@4.2.0-alpha.5This patch release improves developer experience by ensuring proper IntelliSense suggestions for the options object in several core query hooks.
@apollo/client@4.2.0-alpha.4This release introduces automatic event-based refetching capabilities through the new RefetchEventManager, allowing queries to automatically refresh on events like window focus or network reconnection. Event refetching is opt-in and highly configurable at both the client and query levels.
@apollo/client@4.1.6This patch release addresses a specific hydration mismatch issue occurring in `useQuery` when server-side rendering is disabled alongside query skipping.
@apollo/client@4.1.5This patch release addresses two specific bugs: one concerning unnecessary polling in useQuery when skipped, and another regarding incorrect option application in client.query.
@apollo/client@4.1.2This patch release addresses several issues related to Server-Side Rendering (SSR) behavior, specifically ensuring correct handling of fetch policies and skip tokens during initial data reading.
@apollo/client@4.0.4BreakingThis patch release adds a type‑safe `skipToken` for query skipping, fixes unhandled promise rejections and invariant handling, and switches to a named `equal` export from `@wry/equality`, which requires import updates.
@apollo/client@4.0.0BreakingApollo Client 4.0 introduces a framework‑agnostic core, unified error handling, opt‑in local state, a new `dataState` property, and class‑based links, while removing `ApolloError` and several legacy APIs, requiring code migrations.
@apollo/client@4.0.0-rc.1BreakingThis release removes two deprecated configuration options, adds a new `operationType` field for easier operation checks, exports several types, and includes bug fixes around resolver warnings and query rerendering.
@apollo/client@4.0.0-alpha.23BreakingThis release introduces significant improvements to `cache-only` query behavior, making them more predictable by preventing unnecessary fetches and initial loading states. It also modernizes link creation by favoring classes over creator functions and refines option inheritance in `fetchMore`.
v4.0.0-alpha.15BreakingThis release moves unstable testing utilities to an internal namespace, removes several deprecated testing helpers, adds subtle `useQuery` and `ObservableQuery` behavior improvements, and deprecates old MockLink type exports.
v4.0.0-alpha.10BreakingThis release introduces stricter variable handling, new error utilities, and several breaking changes such as removal of `standby` fetchPolicy and deprecation of `never` as a TVariables type.
v3.13.6Patch release fixes ObservableQuery behavior in useQuery, keeping it inactive until the first subscription.
v4.0.0-alpha.5BreakingThe update replaces `FetchResult` with new `SubscribeResult` and `MutateResult` types, removes deprecated subscription callbacks, unifies error handling, and includes several bug fixes and SSR improvements.
v4.0.0-alpha.4BreakingApollo Client v4 introduces public `reobserve`, renames network fetch control to `prioritizeCacheValues`, removes several legacy hook types, and restructures React hook typings, requiring migration steps.
v4.0.0-alpha.3BreakingNetwork errors now respect `errorPolicy` and the `called` property was removed from `useQuery`, requiring updates to error handling and query state checks.
v4.0.0-alpha.2BreakingApollo Client 4.0 removes several generic arguments and options, defaults data and variable types to `unknown`/`OperationVariables`, and fixes the CommonJS build, requiring code updates for TypeScript users.
v3.13.3Patch release corrects networkStatus reporting for queries with errorPolicy "all", fixing observableQuery, useQuery, and useLazyQuery behavior.
v3.13.0BreakingApollo Client 3.13.0 adds the `useSuspenseFragment` hook, improves TypeScript typings, and fixes several bugs, while deprecating several callbacks and options.
v3.13.0-rc.0This release introduces the useSuspenseFragment hook, improves type safety for updateQuery, adds multipart query deduplication, deprecates several callbacks and options, and includes several bug fixes and type corrections.
Track Symbol Changes
Use the Change8 MCP server or GitHub Action to get notified when useQuery changes.
Learn More