> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# IntersectionObserver: disconnect() method

APISummary
The `disconnect` method can be used to clear the target node and callback. The target node will no longer be observed and the corresponding callback will not be triggered. If you need to re-observe the target node, you need to re-specify the target node and callback.

## grammar

```ts
disconnect(): void;
```

### Parameters

None (`undefined`).

### return value

None (`undefined`).

## Compatibility

**Compatibility Table**

**Query:** `lynx-api.intersection-observer.disconnect`

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/intersection-observer/disconnect.json)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| disconnect | Yes (1.5) | Yes (3.4) | Yes (1.5) | Yes (3.5) | Yes (3.5) | Yes |

**`disconnect`**

Clear the target node and callback. The target node will no longer be observed and the corresponding callback will not be triggered.

