28 lines
558 B
Markdown
28 lines
558 B
Markdown
---
|
|
id: unregisterDefaultQueryClient
|
|
title: unregisterDefaultQueryClient
|
|
---
|
|
|
|
```ts
|
|
function unregisterDefaultQueryClient(client): void;
|
|
```
|
|
|
|
Defined in: [packages/lit-query/src/context.ts:45](https://github.com/TanStack/query/blob/main/packages/lit-query/src/context.ts#L45)
|
|
|
|
Unregisters a client previously registered with
|
|
`registerDefaultQueryClient`.
|
|
|
|
`QueryClientProvider` calls this automatically when it disconnects.
|
|
|
|
## Parameters
|
|
|
|
### client
|
|
|
|
[`QueryClient`](../classes/QueryClient.md)
|
|
|
|
The query client registration to release.
|
|
|
|
## Returns
|
|
|
|
`void`
|