Injects the QueryClient instance into the component or service.
Example
const queryClient = injectQueryClient()
const queryClient = injectQueryClient()
function injectQueryClient(): QueryClient
function injectQueryClient(): QueryClient
Injects the QueryClient instance into the component or service.
Example
const queryClient = injectQueryClient()
const queryClient = injectQueryClient()
QueryClient
function injectQueryClient(injectOptions): QueryClient
function injectQueryClient(injectOptions): QueryClient
Injects the QueryClient instance into the component or service.
Example
const queryClient = injectQueryClient()
const queryClient = injectQueryClient()
• injectOptions: InjectOptions & object & object
QueryClient
function injectQueryClient(injectOptions): null | QueryClient
function injectQueryClient(injectOptions): null | QueryClient
Injects the QueryClient instance into the component or service.
Example
const queryClient = injectQueryClient()
const queryClient = injectQueryClient()
• injectOptions: InjectOptions & object
null | QueryClient