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, and this page is available as Markdown at /next/zh/api/genui/openui/core/functions/useOpenUIState.md.
Lynx
  • 简体中文
  • 函数: useOpenUIState()

    useOpenUIState(__namedParameters: UseOpenUIStateOptions, renderDeep: (value: unknown) => ReactNode): OpenUIState

    核心状态 hook——将所有表单状态、action 处理、解析器管理和上下文组装从 Renderer 组件中抽离出来。

    Store 保存所有内容:$bindings 作为顶层键,表单字段则以普通值的形式嵌套在 formName 下。

    参数

    参数类型
    __namedParametersUseOpenUIStateOptions
    renderDeep(value: unknown) => ReactNode

    返回

    OpenUIState

    除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。