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

[Bug Report] schema 重渲染组件 #4206

Closed
1 task
Atw-Lee opened this issue Aug 26, 2024 · 2 comments
Closed
1 task

[Bug Report] schema 重渲染组件 #4206

Atw-Lee opened this issue Aug 26, 2024 · 2 comments

Comments

@Atw-Lee
Copy link

Atw-Lee commented Aug 26, 2024

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Steps to reproduce

很抱歉,reproduction没有写。

我的场景如下:

使用的JSON Schema模式,基于antdv自定义组件A、B

A、B组件存在依赖关系,我希望当A组件@change的时候,重新渲染B组件(想在onMounted中执行某个函数),其实我最开始的想法是通过ref进行调用,当我查找issues后发现不建议使用ref。

我继续查看文档,找到了联动逻辑相关的文档及demo,以及下文的管理业务逻辑。

但是我不确定的是能否“重渲染”B组件,想咨询一下,(偷个懒先不写demo验证了)^_^

期待您的回复

What is expected?

no

What is actually happening?

no

Package

@formily/[email protected]


@Atw-Lee
Copy link
Author

Atw-Lee commented Aug 27, 2024

好像不可以,我该怎么实现我的需求呢。

@yanhao98
Copy link
Contributor

https://www.npmjs.com/package/mitt

用这个通知吧,想干啥干啥。

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

4 participants
@yanhao98 @yiyunwan @Atw-Lee and others