TanStack Query
QueryClient
Owns a query and mutation cache for a chosen lifetime.
Formal Syntax & Structure
react syntaxreact
new QueryClient(options)Working Example
Example Snippetreact
const client = new QueryClient();Owns a query and mutation cache for a chosen lifetime.
new QueryClient(options)const client = new QueryClient();