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

# Component

本页面介绍 Lynx DevTool 支持的 `Component` CDP domain。



:::warning 实验性参考
此生成的参考文档仍在完善中。

- CDP events 尚未包含。
- 部分 Lynx 扩展已列出，但尚未提供详细文档。
- 方法说明尚未根据实现自动校验，可能不完整或不准确。

在依赖本参考前，请根据实现及所链接的 upstream CDP reference 验证实际行为。
:::

## 概览

- 作用域：`global-and-instance`
- CDP domain：Lynx 专有

## Lynx 扩展

### `Component.uselessUpdate`

Echoes a Component.uselessUpdate message with the request params.

- Origin: `lynx-extension`
- Source: `devtool/lynx_devtool/agent/domain_agent/inspector_component_agent.cc`

###### 参数

| Name     | Type     | Required | Description                                                                                            |
| -------- | -------- | -------- | ------------------------------------------------------------------------------------------------------ |
| `params` | `object` | No       | Opaque payload copied from the request params field into the outgoing Component.uselessUpdate message. |

###### 返回字段

无返回字段。

###### 事件

- Component.uselessUpdate

###### 备注

- The handler does not send a normal CDP response with id and result fields.
- The outgoing CDP message has method Component.uselessUpdate and params copied from the request.
- The native implementation does not inspect or validate the params payload.

###### 示例

**Echo a component update payload**

Request:

```json
{
  "id": 1,
  "method": "Component.uselessUpdate",
  "params": {
    "componentId": "comp-1",
    "reason": "debug"
  }
}
```

Response:

```json
{
  "method": "Component.uselessUpdate",
  "params": {
    "componentId": "comp-1",
    "reason": "debug"
  }
}
```

