Skip to content
New issue

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

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

Already on GitHub? # to your account

amis-editor NavSourceControl renderer错误的引入导致触发side effect,全量引入amis editor package #11133

Open
franckchen opened this issue Oct 29, 2024 · 0 comments

Comments

@franckchen
Copy link
Contributor

描述问题:

amis-editor NavSourceControl renderer错误的引入导致触发side effect,全量引入amis editor package

截图或视频:

268cc37f037e6c4fc981740504f4d258

getSchemaTpl是amis editor core的方法。 amis中同样也export了。 如果从amis editor中引入。 则会触发入执行, 入口中引入了很多plugin, 各个plugin其实是存在side effect的, 即export定义, 又将自身注册至editor, 最终导致引入此插件后, 相当于全量引入plugin

如何复现(请务必完整填写下面内容):

引入amis editor core, 然后引入NavSourceControl renderer.即可触发

franckchen pushed a commit to franckchen/amis that referenced this issue Oct 29, 2024
2betop pushed a commit that referenced this issue Oct 30, 2024
Co-authored-by: chenfan02 <chenfan02@baidu.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant