TanStackTanStack
Query v5v5
Framework
StartRouter
Data & State
QueryDBStoreAI
UI & UX
TableFormHotkeys
Performance
VirtualPacer
Tooling
DevtoolsConfigCLIIntent
Blog
Blog & Release Notes
About
YouTubeThe official TanStack channel.WorkshopsLive sessions from the maintainers.Release NotesThe latest releases and changelog.
Channels
DiscordReal-time community support.GitHubSource, issues, discussions, and releases.
People & Work
MaintainersMeet the people maintaining the stack.ContributorsCore, library, and community contributors.ShowcaseTeams building with TanStack.
Tools
BuilderAlphaGenerate TanStack app starters.StatsNPM and ecosystem usage data.
Merch
View all
Support
Support OverviewFind the right support path.PartnersCompanies supporting TanStack.OSS SponsorsSponsors keeping TanStack open source.Enterprise SupportPrivate consulting and expert support.ContactGet in touch with the TanStack team.
About
EthosHow we approach open source.TenetsThe values that shape TanStack libraries.Design SystemLogos, tokens, and UI components.
Partners

Sponsorships, placements, and partner pages.

Work with
TanStack
Get in touch
Log In
Log In
Blog & Release Notes
About
YouTubeThe official TanStack channel.WorkshopsLive sessions from the maintainers.Release NotesThe latest releases and changelog.
Channels
DiscordReal-time community support.GitHubSource, issues, discussions, and releases.
People & Work
MaintainersMeet the people maintaining the stack.ContributorsCore, library, and community contributors.ShowcaseTeams building with TanStack.
Tools
BuilderAlphaGenerate TanStack app starters.StatsNPM and ecosystem usage data.
View all
Support
Support OverviewFind the right support path.PartnersCompanies supporting TanStack.OSS SponsorsSponsors keeping TanStack open source.Enterprise SupportPrivate consulting and expert support.ContactGet in touch with the TanStack team.
About
EthosHow we approach open source.TenetsThe values that shape TanStack libraries.Design SystemLogos, tokens, and UI components.
Get in touch
Docs
API Reference
  • QueryClient
  • QueryCache
  • MutationCache
  • QueryObserver
  • InfiniteQueryObserver
  • QueriesObserver
  • streamedQuery
  • focusManager
  • onlineManager
  • environmentManager
  • notifyManager
  • timeoutManager
  • Lit Reference
  • QueryClientProvider
  • Functions / createQueryController
  • Functions / createQueriesController
  • Functions / createInfiniteQueryController
  • Functions / createMutationController
  • Functions / useIsFetching
  • Functions / useIsMutating
  • Functions / useMutationState
  • Functions / useQueryClient
  • Functions / queryOptions
  • Functions / infiniteQueryOptions
  • Functions / mutationOptions
  • Context / queryClientContext
  • Context / getDefaultQueryClient
  • Context / registerDefaultQueryClient
  • Context / unregisterDefaultQueryClient
  • Context / resolveQueryClient
HomeGet StartedGuidesAPIExamples
API Reference
  • QueryClient
  • QueryCache
  • MutationCache
  • QueryObserver
  • InfiniteQueryObserver
  • QueriesObserver
  • streamedQuery
  • focusManager
  • onlineManager
  • environmentManager
  • notifyManager
  • timeoutManager
  • Lit Reference
  • QueryClientProvider
  • Functions / createQueryController
  • Functions / createQueriesController
  • Functions / createInfiniteQueryController
  • Functions / createMutationController
  • Functions / useIsFetching
  • Functions / useIsMutating
  • Functions / useMutationState
  • Functions / useQueryClient
  • Functions / queryOptions
  • Functions / infiniteQueryOptions
  • Functions / mutationOptions
  • Context / queryClientContext
  • Context / getDefaultQueryClient
  • Context / registerDefaultQueryClient
  • Context / unregisterDefaultQueryClient
  • Context / resolveQueryClient
AI/LLM: This documentation page is available in plain markdown format at/query/v5/docs/framework/lit/reference/variables/queryClientContext.md
API Reference

queryClientContext

Variable: queryClientContext#

ts
const queryClientContext: object;

Defined in: packages/lit-query/src/context.ts:11

Lit context key used by QueryClientProvider and host-bound APIs to share a QueryClient through the DOM tree.

Most applications use QueryClientProvider instead of interacting with this context directly.

Edit on GitHub
PreviousFunctions / mutationOptions
NextContext / getDefaultQueryClient
Blog
@Tan_Stack on X.com
@TannerLinsley on X.com
GitHub
YouTube
Nozzle.io - Keyword Rank Tracker
Ethos
Tenets
Privacy Policy
Terms of Service
© 2026 TanStack LLC
PartnersBecome a Partner
Gold
CodeRabbitCodeRabbit
LovableLovable
CloudflareCloudflare
RailwayRailway
NetlifyNetlify
Silver
AG GridAG Grid
OpenRouterOpenRouter
WorkOSWorkOS
ClerkClerk
SerpApiSerpApi
Bronze
PrismaPrisma
SentrySentry
UnkeyUnkey
ElectricElectric
Latest Posts