injectQueryClient

Function: injectQueryClient()

Injects the QueryClient instance into the component or service.

Example

ts
const queryClient = injectQueryClient()
const queryClient = injectQueryClient()

injectQueryClient()

ts
function injectQueryClient(): QueryClient
function injectQueryClient(): QueryClient

Injects the QueryClient instance into the component or service.

Example

ts
const queryClient = injectQueryClient()
const queryClient = injectQueryClient()

Returns

QueryClient

Defined in

inject-query-client.ts:16

injectQueryClient(injectOptions)

ts
function injectQueryClient(injectOptions): QueryClient
function injectQueryClient(injectOptions): QueryClient

Injects the QueryClient instance into the component or service.

Example

ts
const queryClient = injectQueryClient()
const queryClient = injectQueryClient()

Parameters

injectOptions: InjectOptions & object & object

Returns

QueryClient

Defined in

inject-query-client.ts:16

injectQueryClient(injectOptions)

ts
function injectQueryClient(injectOptions): null | QueryClient
function injectQueryClient(injectOptions): null | QueryClient

Injects the QueryClient instance into the component or service.

Example

ts
const queryClient = injectQueryClient()
const queryClient = injectQueryClient()

Parameters

injectOptions: InjectOptions & object

Returns

null | QueryClient

Defined in

inject-query-client.ts:16