For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt, and this page is available as Markdown at /zh/api/genui/openui/functions/useOpenUIState.md.
Lynx
  • 简体中文
  • genui / openui / useOpenUIState

    useOpenUIState()

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

    Core state hook — extracts all form state, action handling, parser management, and context assembly out of the Renderer component.

    Store holds everything: $bindings as top-level keys, form fields nested under formName as plain values.

    参数

    范围类型
    __namedParametersUseOpenUIStateOptions
    renderDeep(value: unknown) => ReactNode

    返回

    OpenUIState

    定义于

    @lynx-js/genui/openui/src/core/hooks/useOpenUIState.ts:118

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