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

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

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

tannerlinsley/react-query

0
View on GitHub↗
49,769 星标·3,891 分支·TypeScript·MIT·6 次浏览tanstack.com/query↗

React Query

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 mutations while syncing with the server in the background.

The utility covers a broad range of capabilities including remote data mutation, web data caching, and the management of pagination and dependent queries. It also provides tools for optimizing data loading and synchronizing server state across various JavaScript and TypeScript UI frameworks.

Features

  • Server State Managers - Functions as a server-state manager that synchronizes remote data with local application state.
  • Stale-While-Revalidate Strategies - Implements a stale-while-revalidate cache pattern to provide immediate data access while triggering background updates.
  • Cache Revalidation - Updates server information and automatically refreshes the local cache to maintain data consistency across the UI.
  • Asynchronous Data Fetching - Retrieves remote data and manages its lifecycle as asynchronous state to keep the user interface in sync.
  • Asynchronous State Managers - Manages remote server data as asynchronous state to ensure the user interface remains synchronized.
  • Asynchronous Data Caching - Caches the results of asynchronous network operations using unique keys to reduce redundant requests.
  • Data Fetching Orchestrators - Orchestrates mutations, pagination, and dependent queries to synchronize local state with a remote server.
  • Stale-While-Revalidate - Implements the stale-while-revalidate pattern to provide immediate cached data while triggering background updates.
  • Optimistic Updates - Provides a system to update the user interface immediately during mutations and synchronize changes with the server in the background.
  • Cache Mutation Utilities - Provides utilities for updating and revalidating local data caches during the mutation lifecycle.
  • Cache Key Generators - Generates unique cache keys using serialized arrays or strings for efficient retrieval of asynchronous data.
  • Cache Garbage Collection - Implements automatic removal of unused cache entries to prevent memory leaks in long-running sessions.
  • State Synchronization Patterns - Uses an observer-based pattern to trigger automatic data refetches when window focus or connectivity changes.
  • Dependency Resolvers - Defers network requests until prerequisite data dependencies are resolved to ensure components are fully populated.
  • Perceived Performance Optimizations - Optimizes perceived performance through prefetching resources and providing immediate feedback via optimistic updates.
  • State Management Utilities - Provides state management utilities to handle asynchronous data lifecycles across multiple JavaScript and TypeScript frameworks.
  • Web Caching - Stores network responses locally to reduce redundant API calls and improve application loading speeds.
  • Data Fetching Utilities - Provides utilities for managing network requests, preloading, and caching across various UI frameworks.
  • Optimistic UI Updates - Updates the user interface immediately during mutations and synchronizes with the server in the background.
  • API Clients and Utilities - Data fetching and caching for React.
  • Data Fetching - Fetch, cache, and update asynchronous data.
  • React Ecosystem - Hooks-based library for fetching, caching, and updating asynchronous data.
  • State Management - Powerful asynchronous state management for React applications.

Star 历史

tannerlinsley/react-query 的 Star 历史图表tannerlinsley/react-query 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

常见问题解答

tannerlinsley/react-query 是做什么的?

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.

tannerlinsley/react-query 的主要功能有哪些?

tannerlinsley/react-query 的主要功能包括:Server State Managers, Stale-While-Revalidate Strategies, Cache Revalidation, Asynchronous Data Fetching, Asynchronous State Managers, Asynchronous Data Caching, Data Fetching Orchestrators, Stale-While-Revalidate。

tannerlinsley/react-query 有哪些开源替代品?

tannerlinsley/react-query 的开源替代品包括: tanstack/query — This project provides a comprehensive suite of tools for managing asynchronous state and building full-stack web… vercel/swr — SWR is a data fetching library that provides a collection of hooks for managing remote data synchronization, caching,… facebook/react — React is a JavaScript library for building user interfaces based on a component-driven architecture and unidirectional… facebook/relay — Relay is a GraphQL client framework and state manager used for building data-driven applications. It functions as a… ctrlplusb/easy-peasy — Easy-peasy is a React state management library and typed framework that provides a centralized store for managing… zerobias/effector — Effector is a reactive state management library and data flow orchestrator designed for building complex, event-driven…

React Query 的开源替代方案

相似的开源项目,按与 React Query 的功能重合度排序。
  • 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

    TypeScriptasynccachedata
    在 GitHub 上查看↗49,761
  • 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

    TypeScriptcachedatadata-fetching
    在 GitHub 上查看↗32,406
  • facebook/reactfacebook 的头像

    facebook/react

    245,669在 GitHub 上查看↗

    React is a JavaScript library for building user interfaces based on a component-driven architecture and unidirectional data flow.

    JavaScriptjavascriptuifrontend
    在 GitHub 上查看↗245,669
  • 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

    Rust
    在 GitHub 上查看↗18,940
  • 查看 React Query 的所有 30 个替代方案→