awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·

React 数据获取与缓存库

排名更新于 2026年6月30日

For React 数据获取与缓存库, the strongest matches are tannerlinsley/react-query (React Query TanStack Query is a dedicated React data-fetching), vercel/swr (SWR is a React hook-based data fetching library with) and facebook/relay (Relay is a GraphQL client framework purpose-built for React). apollographql/react-apollo and tanstack/query round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.

用于在 React 应用中管理服务器状态、异步数据同步和高效缓存的库。

React 数据获取与缓存库

用 AI 发现最棒的仓库。我们将通过 AI 为您搜索最匹配的仓库。
  • tannerlinsley/react-querytannerlinsley 的头像

    tannerlinsley/react-query

    49,769在 GitHub 上查看↗

    React Query is an asynchronous state management library and data fetching orchestrator designed to fetch, cache, and synchronize server state in web applications. It functions as a server-state cache manager that handles asynchronous data requests to keep local application state in sync with a remote server. The library implements a stale-while-revalidate cache pattern, which provides immediate access to cached data while triggering background updates to maintain consistency. It further supports optimistic user interface updates, allowing the interface to change immediately during data mutati

    React Query (TanStack Query) is a dedicated React data-fetching and server-state management library that implements stale-while-revalidate caching, automatic background refetching, React hooks, optimistic updates, and request deduplication—exactly the kind of library this search asks for, with comprehensive support for the listed features.

    TypeScriptOptimistic UI UpdatesOptimistic UpdatesStale-While-Revalidate
    在 GitHub 上查看↗49,769
  • vercel/swrvercel 的头像

    vercel/swr

    32,406在 GitHub 上查看↗

    SWR is a data fetching library that provides a collection of hooks for managing remote data synchronization, caching, and state updates in web applications. It employs a declarative approach to handle complex network request lifecycles and dependency chains, ensuring that client-side application state remains consistent with server data through automatic revalidation and background updates. The library distinguishes itself through a reactive cache layer that automatically synchronizes local state with remote sources based on component lifecycle events. It features event-driven revalidation, w

    SWR is a React hook-based data fetching library with automatic caching, background revalidation, pagination via useSWRInfinite, optimistic updates, and request deduplication, making it an excellent fit for managing server state in React applications.

    TypeScriptOptimistic UI UpdatesRequest DeduplicationFocus-Based Revalidation
    在 GitHub 上查看↗32,406
  • facebook/relayfacebook 的头像

    facebook/relay

    18,940在 GitHub 上查看↗

    Relay is a GraphQL client framework and state manager used for building data-driven applications. It functions as a declarative data fetching layer and a GraphQL compiler that transforms declarations into optimized runtime code with automatic type generation. The framework distinguishes itself through a build-time compilation process that generates optimized queries and a data masking system that prevents components from accessing undeclared data. It employs a normalized client-side cache to maintain consistency across entities and an optimistic update mechanism to provide immediate interface

    Relay is a GraphQL client framework purpose-built for React, offering a normalized cache, optimistic updates, pagination, and request deduplication via its compiler and hooks, which directly matches the search for a React-specific data fetching and caching library with all the requested features.

    RustOptimistic UI UpdatesOptimistic Updates
    在 GitHub 上查看↗18,940
  • apollographql/react-apolloapollographql 的头像

    apollographql/react-apollo

    6,799在 GitHub 上查看↗

    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

    react-apollo is a React-specific GraphQL data fetching library that provides all the requested features—automatic caching via a normalized cache, background refetching through polling and refetch, a hooks API for queries and mutations, pagination with fetchMore, optimistic updates, and request deduplication—making it a comprehensive match for managing server state in GraphQL-backed React apps.

    JavaScriptPolling and Refetching
    在 GitHub 上查看↗6,799
  • tanstack/queryTanStack 的头像

    TanStack/query

    49,761在 GitHub 上查看↗

    This project provides a comprehensive suite of tools for managing asynchronous state and building full-stack web applications. At its core, it functions as a centralized synchronization layer that automates data fetching, caching, and background revalidation, ensuring that remote server data remains consistent with the local user interface. By utilizing a declarative, hook-based programming model, it simplifies the management of complex data lifecycles and loading states. The project distinguishes itself through a headless design philosophy that decouples business logic from visual presentati

    TanStack Query is the premier React library for server-state management, offering hooks-based data fetching, automatic caching, background refetching, pagination, optimistic updates, and request deduplication — exactly the solution this search targets.

    TypeScriptRequest Deduplication Utilities
    在 GitHub 上查看↗49,761
  • formidablelabs/urqlFormidableLabs 的头像

    FormidableLabs/urql

    8,956在 GitHub 上查看↗

    urql is a GraphQL client and data management tool used to execute GraphQL operations and synchronize data from remote servers within a software application. It functions as a mechanism for fetching, caching, and managing GraphQL data to maintain state across application views. The project features a pluggable middleware architecture and a normalized GraphQL cache. This allows for the insertion of custom logic into the request and response lifecycle to modify client behavior and the organization of responses by unique identifiers to ensure data consistency. The client provides capabilities fo

    urql is a GraphQL client and data management tool that provides React hooks, automatic caching, request deduplication, pagination support, and optimistic updates, making it a strong match for a React-specific data fetching and caching library with the features you listed.

    TypeScriptGraphQL Normalized CachesClient Query ExecutionData Fetching
    在 GitHub 上查看↗8,956
  • apollographql/apollo-clientapollographql 的头像

    apollographql/apollo-client

    19,798在 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

    Apollo Client is a full-featured GraphQL data fetching and caching library for React with hooks, automatic caching, background refetching, pagination, optimistic updates, and deduplication, making it a perfect fit for managing server state in a React app using GraphQL.

    TypeScriptGraphQL Client FrameworksGraphQL Data FetchingNormalized Data Caching
    在 GitHub 上查看↗19,798
  • reduxjs/redux-toolkitreduxjs 的头像

    reduxjs/redux-toolkit

    11,213在 GitHub 上查看↗

    Redux Toolkit is a state management toolkit and store configurator designed to simplify the development of Redux applications by reducing boilerplate code. It functions as an immutable state manager and a centralized store configuration system that provides a streamlined workflow for managing global application state. The project distinguishes itself through an automated async action orchestrator that manages the lifecycle of promises by automatically dispatching pending, fulfilled, and rejected actions. It also acts as a normalized state organizer, providing tools to structure complex relati

    Redux Toolkit includes RTK Query, a React-specific data fetching and caching library that provides automatic caching, background refetching, React hooks, pagination, optimistic updates, and request deduplication — exactly the server state management tools you need.

    TypeScriptGlobal State ManagersRedux ImplementationsAsync Action Orchestrators
    在 GitHub 上查看↗11,213
  • urql-graphql/urqlurql-graphql 的头像

    urql-graphql/urql

    8,959在 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

    urql is a React data-fetching and caching library with hooks and built-in caching, pagination, optimistic updates, and request deduplication, but it is tailored specifically for GraphQL APIs rather than any backend.

    TypeScriptGraphQL Data Management LibrariesComposable Middleware PipelinesGraphQL Client Middleware
    在 GitHub 上查看↗8,959
  • trojanowski/react-apollo-hookstrojanowski 的头像

    trojanowski/react-apollo-hooks

    2,388在 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

    This library provides React hooks for Apollo Client, enabling data fetching, caching, and state synchronization in React apps, which is exactly what you want for managing server state in a React-specific library.

    TypeScriptReact GraphQL HooksGraphQL Query HooksServer State Fetching
    在 GitHub 上查看↗2,388
一览前 10 名对比
仓库Star 数语言许可证最后推送
tannerlinsley/react-query49.8KTypeScriptMIT2026年6月16日
vercel/swr32.4KTypeScriptMIT2026年6月22日
facebook/relay18.9KRustMIT2026年6月16日
apollographql/react-apollo6.8KJavaScriptMIT2023年4月13日
tanstack/query49.8KTypeScriptMIT2026年6月16日
formidablelabs/urql9KTypeScriptMIT2026年6月16日
apollographql/apollo-client19.8KTypeScriptMIT2026年6月13日
reduxjs/redux-toolkit11.2KTypeScriptMIT2026年6月23日
urql-graphql/urql9KTypeScriptMIT2026年6月22日
trojanowski/react-apollo-hooks2.4KTypeScriptMIT2022年12月9日

Related searches

  • 支持缓存的 GraphQL 客户端库
  • a javascript library for caching data
  • a javascript library for graphql apis
  • 前端框架的状态管理库
  • 用于构建 React 数据看板的图表库
  • a javascript library for making http requests
  • a lightweight HTTP client for TypeScript
  • React 表格与数据网格组件