awesome-repositories.com
Blog
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectAboutHow we rankPressMCP server
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
apollographql avatar

apollographql/react-apolloArchived

0
View on GitHub↗
6,799 stars·764 forks·JavaScript·MIT·3 viewswww.apollographql.com/docs/react↗

React Apollo

React Apollo is a React-specific GraphQL data fetching library that binds Apollo Client to components through declarative hooks for queries, mutations, and subscriptions. It provides a declarative approach to GraphQL query execution where components declare their data requirements and automatically receive loading, error, and data states without managing request lifecycle code.

The library distinguishes itself through a normalized cache layer that deduplicates entities and serves repeated requests without network calls, combined with incremental result streaming via the @defer directive for partial query field delivery. It supports persisted operations safelisting for security, where approved queries are registered with the server so only pre-authorized operations are accepted. A fine-grained network status enumeration exposes distinct states for loading, refetching, polling, and pagination, enabling precise UI feedback.

The library offers provider-based client injection through a context provider at the component tree root, making the GraphQL client accessible to all descendant hooks. It includes configurable caching strategies with cache-first and network-only fetch policies, conditional query skipping using a type-safe token, and support for real-time subscriptions that push live data from the server without polling. Polling and refetch mechanisms allow queries to be re-executed at intervals or on demand, with partial error handling that can either discard all data on error or keep partial results when some fields fail.

Features

  • React GraphQL Hooks - Binds Apollo Client to React components with hooks for declarative GraphQL queries, mutations, and subscriptions.
  • Query Result Caching - Caches fetched query data locally so identical queries return instantly without making a network request.
  • Client Query Execution - Provides a declarative hook-based API for executing GraphQL queries and managing their lifecycle.
  • GraphQL Normalized Caches - Ships a normalized client-side cache that deduplicates GraphQL entities and serves repeated requests without network calls.
  • Provider-Based Clients - Wraps the component tree root with a provider that makes the GraphQL client accessible to all child components.
  • Context Provider Injection - Uses a React context provider at the component tree root to inject the GraphQL client into all descendant hooks.
  • Query Hooks - Ships React hooks that execute GraphQL queries and expose loading, error, and data states to components.
  • GraphQL Data Fetching - Fetches data from a GraphQL endpoint and automatically re-renders React components when that data changes.
  • Declarative GraphQL Lifecycles - Manages loading, error, and data states of GraphQL queries in React components without manual request lifecycle code.
  • Declarative Data Hooks - Provides declarative React hooks that automatically manage GraphQL query loading, error, and data states.
  • GraphQL Query Hooks - Executes GraphQL queries via React hooks and returns loading, error, and data states for UI rendering.
  • Manual Query Triggers - Defers GraphQL query execution until a manual trigger like a button click by returning an execution function from a hook.
  • GraphQL Subscriptions - Implements real-time GraphQL subscriptions that push live data from the server to React components without polling.
  • GraphQL Deferred Streams - Implements incremental query result streaming via the @defer directive for partial field delivery.
  • GraphQL Fetch Policies - Offers configurable fetch policies like cache-first and network-only to control how queries retrieve data.
  • Persisted Operation Enforcement - Supports persisted operations safelisting where approved queries are registered with the server for security.
  • Query Refetching - Triggers fresh GraphQL query execution in response to user actions, optionally with new variables.
  • GraphQL Deferred Fields - Implements the @defer directive for incremental delivery of GraphQL query fields as partial results.
  • GraphQL Query Polling - Re-executes GraphQL queries at intervals or on demand with distinct network statuses for each trigger type.
  • Polling and Refetching - Supports configurable polling intervals and on-demand refetching with distinct network statuses for each trigger type.
  • Data Polling - Re-executes GraphQL queries periodically at set intervals to keep displayed data near-real-time with the server.

Star history

Star history chart for apollographql/react-apolloStar history chart for apollographql/react-apollo

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to React Apollo

Similar open-source projects, ranked by how many features they share with React Apollo.
  • trojanowski/react-apollo-hookstrojanowski avatar

    trojanowski/react-apollo-hooks

    2,388View on GitHub↗

    This library provides a collection of hooks for integrating GraphQL data operations into functional components within the Apollo Client ecosystem. It functions as a state management tool that synchronizes remote server data with local component state, ensuring consistent data representation across the user interface. The project distinguishes itself by enabling server-side rendering through a framework of utilities that pre-fetch data and resolve component trees to deliver fully populated HTML. It utilizes a provider-based pattern to inject the data client into the component tree, allowing ne

    TypeScript
    View on GitHub↗2,388
  • urql-graphql/urqlurql-graphql avatar

    urql-graphql/urql

    8,959View on GitHub↗

    urql is a GraphQL client library designed for fetching and managing data from a GraphQL API. It provides a system for handling GraphQL data fetching, state management, and integration with React components. The library is distinguished by a middleware pipeline architecture that allows the request-response flow to be modified through swappable exchanges. This enables the customization of the data layer, including the addition of custom business logic, request deduplication, and specialized fetching behaviors. The project covers a broad range of capabilities, including normalized caching to en

    TypeScriptcomplex-appsexchangegraphql
    View on GitHub↗8,959
  • akryum/vue-apolloAkryum avatar

    Akryum/vue-apollo

    6,041View on GitHub↗

    Vue Apollo is a GraphQL integration library for Vue applications that connects Vue components to GraphQL APIs using Apollo Client. It provides a reactive data layer for querying, mutating, and subscribing to data from GraphQL endpoints, with automatic cache updates and real-time subscription support. The library offers multiple API surfaces for working with GraphQL data, including slot-based declarative components, composable functions for the Composition API, and Options API integration. It handles the full lifecycle of GraphQL operations, from automatic data fetching with reactive queries t

    TypeScript
    View on GitHub↗6,041
  • apollographql/apollo-clientapollographql avatar

    apollographql/apollo-client

    19,798View on GitHub↗

    Apollo Client is a GraphQL client library and data fetching framework used to request data from a GraphQL server and synchronize that state within a frontend application. It functions as a remote state manager and a local state management tool, allowing developers to define client-side schemas and resolvers for data that does not reside on a remote server. The project features a normalized GraphQL cache that identifies objects by ID to ensure referential equality and consistent data updates across different queries. It also includes a GraphQL API mocking tool to simulate server responses and

    TypeScriptapollo-clientapollographqlgraphql
    View on GitHub↗19,798
See all 30 alternatives to React Apollo→

Frequently asked questions

What does apollographql/react-apollo do?

React Apollo is a React-specific GraphQL data fetching library that binds Apollo Client to components through declarative hooks for queries, mutations, and subscriptions. It provides a declarative approach to GraphQL query execution where components declare their data requirements and automatically receive loading, error, and data states without managing request lifecycle code.

What are the main features of apollographql/react-apollo?

The main features of apollographql/react-apollo are: React GraphQL Hooks, Query Result Caching, Client Query Execution, GraphQL Normalized Caches, Provider-Based Clients, Context Provider Injection, Query Hooks, GraphQL Data Fetching.

What are some open-source alternatives to apollographql/react-apollo?

Open-source alternatives to apollographql/react-apollo include: trojanowski/react-apollo-hooks — This library provides a collection of hooks for integrating GraphQL data operations into functional components within… urql-graphql/urql — urql is a GraphQL client library designed for fetching and managing data from a GraphQL API. It provides a system for… akryum/vue-apollo — Vue Apollo is a GraphQL integration library for Vue applications that connects Vue components to GraphQL APIs using… formidablelabs/urql — urql is a GraphQL client and data management tool used to execute GraphQL operations and synchronize data from remote… apollographql/apollo-client — Apollo Client is a GraphQL client library and data fetching framework used to request data from a GraphQL server and… apollographql/apollo-ios — apollo-ios is a GraphQL client library for iOS and Apple platforms that enables type-safe network communication. It…