Skip to content

渲染react组件时因为xflow引用的@antv/x6-react-shape版本是2.0.8,该版本是react 18以下使用的。 #476

@vok123

Description

@vok123

问题描述

渲染react组件时因为xflow引用的@antv/x6-react-shape版本是2.0.8,该版本是react 18以下使用的。建议升级一下或者怎么处理一下, 不然react 18+ 是没办渲染自定义组件的, 感谢付出。
@antv/x6-react-shape文档解释地址:https://x6.antv.antgroup.com/tutorial/intermediate/react

重现链接

暂无

重现步骤

  1. react 版本使用18+, xflow使用2.1.10;
  2. 使用了useDnd, 将自定义的react组件拖进graph中;
  3. 无法将组件渲染出来

预期行为

能将将组件渲染出来

平台

  • 操作系统: [Windows]
  • 网页浏览器: [Google Chrome]
  • XFlow 版本: [2.1.10]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleIssue that may be closed soon due to the original author not responding any more.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions