[V5] 正确的重置画布的方法是什么? #6321
Unanswered
recursively
asked this question in
Q&A
Replies: 3 comments 3 replies
-
不需要监听 data 吧 |
Beta Was this translation helpful? Give feedback.
0 replies
-
在 React 严格模式下,出现 Graph destroy 方法被意外调用的问题比较常见,你可以参考如下实现进行调整以避免该问题: |
Beta Was this translation helpful? Give feedback.
2 replies
-
你参考下这个有没有用 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
我在nextjs中使用如下方式渲染画布:
我这里没有使用destroy()来销毁画布,因为我在页面刚刷新的时候就报“The graph instance has been destroyed”的错误,但是如果使用我上述的代码,在布局没有结束的时候,更新数据,此时会报如下错误:
所以是不是我重置画布的方式有问题?destroy()方法我在V4里面用是没有问题的,切换到V5过后直接不能用了。
Beta Was this translation helpful? Give feedback.
All reactions