Nothing Special   »   [go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在vue3中使用veaury库引入react和grapin做拓扑图组件 #515

Open
ksmarsh opened this issue Sep 13, 2023 · 0 comments
Open

在vue3中使用veaury库引入react和grapin做拓扑图组件 #515

ksmarsh opened this issue Sep 13, 2023 · 0 comments

Comments

@ksmarsh
Copy link
ksmarsh commented Sep 13, 2023

Describe the bug

正确加载react组件,在进行vue3 的路由切换是报错 Maximum call stack size exceeded ,排查后发现是组件Graphin 报错,但不知道是什么原因导致的

Your Example Website or App

暂无

Steps to Reproduce the Bug or Issue

创建一个vue3组件 安装 veaury库,使用
import ReactV from './react/index'
import {applyReactInVue} from 'veaury'
components: { ReactV :applyReactInVue(ReactV)},

在reactv组件里使用
<Graphin data={data1} height={700} layout={{ type: 'random' }}/>
要加载此组件,在vue路由跳转会报错堆栈溢出。加载其他react组件不会例如 表格。
我在veaury库的issus中作者提到堆栈溢出是由于vue 的某个属性一直循环引用渲染视图导致堆栈溢出,但我这里并没有使用变量来控制,变量都在react组件内部使用

Expected behavior

正常加载,

Screenshots or Videos

No response

Platform

Windows
Chrome
Version:116.0.5845.182

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant