Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 395 Bytes

File metadata and controls

17 lines (12 loc) · 395 Bytes
id useQueryClient
title useQueryClient

The useQueryClient hook returns the current QueryClient instance.

import { useQueryClient } from '@tanstack/react-query'

const queryClient = useQueryClient(queryClient?: QueryClient)

Options

  • queryClient?: QueryClient,
    • Use this to use a custom QueryClient. Otherwise, the one from the nearest context will be used.