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

div引入组件,页面useeffect中调用init,存在plug中存在按钮和标题的缓存,会产生重复按钮和标题 #6

Closed
xpqxpxp opened this issue Mar 6, 2024 · 2 comments

Comments

@xpqxpxp
Copy link

xpqxpxp commented Mar 6, 2024

No description provided.

@QuadrantIV
Copy link
Owner

init 不能重复执行

@QuadrantIV QuadrantIV closed this as not planned Won't fix, can't repro, duplicate, stale Mar 7, 2024
@xiaosongxiaosong
Copy link

@QuadrantIV
“一个轻量级、可插拔、OOP 式图形编辑器开发引擎”,这个思路很棒
有一点小问题,我看了下 graphix-engine 的代码,这部分实现有两个问题:
一是缺少 init 对应的销毁方法,进行释放资源和删除 dom 节点等操作
二是挂载节点是自己来生成的,id 也是写死的,可以考虑做成传递进来的

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

3 participants