Skip to content

feat(config/nacos): 变更回调增加变更前的配置对象,可以用来判断哪些配置变更进行特殊处理 #4331

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ppanphper
Copy link
Contributor

变更回调增加变更前的配置对象,可以用来判断哪些配置变更进行特殊处理。目前是只能获取更新后的配置,无法获取之前的配置,有些特殊配置无法感知是否变更。

@LanceAdd
Copy link
Contributor

LanceAdd commented Jul 7, 2025

这个没啥必要,我之前加这个onchange回调的时候考虑过这个,按照gf的设计来说,每个组件都是解耦的,如果有需要组件应该自己缓存自己需要的旧配置内容,配置更新了onchange里带着新配置通知下就行,剩下的让具体组件自己决定要干嘛,目前V3 plan下面大家也提出了增强感知需求,就是不知道会不会通过

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

Successfully merging this pull request may close these issues.

2 participants