Client topic
The QueryClient owns the query and mutation caches and is the entry point for everything imperative: fetching (query), reading and writing cached data, invalidating, cancelling and refetching. Create one per app and keep it; DefaultOptions, QueryDefaults and MutationDefaults configure it.
Classes
- DefaultOptions Client
- Client-wide defaults, passed to the QueryClient constructor or to QueryClient.setDefaultOptions.
- MutationDefaults Client
- Mutation options that apply to many mutations at once: client-wide through DefaultOptions.mutations, or per mutation-key prefix through QueryClient.setMutationDefaults.
- QueryClient Client
- The entry point of query_kit: owns the caches and everything imperative — fetching, reading and writing cached data, invalidating, cancelling.
- QueryDefaults Client
- Query options that apply to many queries at once: client-wide through DefaultOptions.queries, or per key prefix through QueryClient.setQueryDefaults.