query
by
TanStack

Description: 🤖 Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.

View on GitHub ↗

Summary Information

Updated 7 minutes ago
Added to GitGenius on January 10th, 2024
Created on September 10th, 2019
Open Issues & Pull Requests: 190 (+0)
Number of forks: 3,979
Total Stargazers: 49,915 (+10)
Total Subscribers: 257 (+7)

Issue Activity (beta)

Open issues: 71
New in 7 days: 2
Closed in 7 days: 0
Avg open age: 373 days
Stale 30+ days: 54
Stale 90+ days: 41

Recent activity

Opened in 7 days: 1
Closed in 7 days: 0
Comments in 7 days: 2
Events in 7 days: 6

Top labels

  • bug (204)
  • works as designed (156)
  • types (100)
  • needs-info (99)
  • released (95)
  • package: vue-query (65)
  • wontfix (61)
  • v5 (60)

Repository Insights (GitGenius)

Median issue/PR response: 3.1 days
Mean response time: 497.3 days
90th percentile: 2153.9 days
Tracked items: 929

Most active contributors

Detailed Description

TanStack Query is an asynchronous state management library designed to handle server state operations across multiple JavaScript frameworks. The library provides protocol-agnostic data fetching capabilities that work with REST APIs, GraphQL, promises, and other data sources. It is available in framework-specific implementations including React Query, Solid Query, Svelte Query, and Vue Query, with the core functionality written in TypeScript.

The primary purpose of TanStack Query is to simplify the complex task of managing server state in web applications. It abstracts away the boilerplate typically required for fetching, caching, synchronizing, and updating data from remote sources. The library handles caching strategies including stale-while-revalidate patterns, automatic refetching, and cache invalidation. It supports pagination and infinite scrolling patterns for handling large datasets, allowing developers to implement these common UI patterns without building the logic from scratch.

Beyond basic data fetching, TanStack Query provides mutation handling for server state updates, dependent query management where one query depends on the results of another, and background update capabilities. The library includes prefetching functionality to load data before it is needed, query cancellation to prevent unnecessary network requests, and React Suspense support for frameworks that implement this pattern. Optimistic updates are supported, enabling applications to update the UI immediately while server operations complete in the background.

The repository shows significant community engagement with 917 tracked issues and pull requests. The median response latency for issues and pull requests is 76 hours, though the mean is substantially higher at 12091.2 hours, indicating some older items in the backlog. The most frequently applied issue label is works as designed with 80 occurrences, followed by types with 51 and bug with 49, suggesting the project maintains clear categorization of issues. TkDodo is the primary maintainer and contributor with 1565 recorded events, followed by arnoud-dv with 148 events and DamianOsipiuk with 76 events.

The project maintains overlapping contributors with major repositories including microsoft/vscode, microsoft/typescript, and rust-lang/rust, indicating its significance in the broader JavaScript ecosystem. TanStack Query is part of the larger TanStack ecosystem of libraries that includes routing, form state management, table components, and other utilities. The library is distributed via npm with the core package published as @tanstack/query-core, and framework-specific variants like @tanstack/react-query are available for individual framework implementations.

query
by
TanStackTanStack/query

Repository Details

Fetching additional details & charts...