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

[Feature] 希望监听到ProjecSchema.config的变化 #2262

Open
eightHundreds opened this issue Jul 10, 2023 · 4 comments
Open

[Feature] 希望监听到ProjecSchema.config的变化 #2262

eightHundreds opened this issue Jul 10, 2023 · 4 comments
Assignees
Labels
help wanted Extra attention is needed / 老铁,赚 PR 的机会来了

Comments

@eightHundreds
Copy link
Contributor

背景

ProjectSchema.config在我的实际需求中会比较容易变化。

之前的方案是修改ProjectSchema,再用project.importSchema去更新,并用project.onChangeDocument去监听变化,但是这种方案会引发#1122 问题。 官方没对这个api没有很清晰的描述,我只能假定该方法只适合初始化是调用。于是改成,project.setConfig方式修改config。但这个api无法被监听。

@liujuping
Copy link
Collaborator

这个 api 会自动触发 simulator 中监听的 connect 以重新获取配置。

#1742

你这里说的监听,是希望有 API 可以让你感知到它更新吗?

@eightHundreds
Copy link
Contributor Author

这个 api 会自动触发 simulator 中监听的 connect 以重新获取配置。

#1742

你这里说的监听,是希望有 API 可以让你感知到它更新吗?

@liujuping
Copy link
Collaborator

这个目前的确没有,可以提 PR 支持一下。

@liujuping liujuping added the help wanted Extra attention is needed / 老铁,赚 PR 的机会来了 label Aug 2, 2023
@github-actions
Copy link

github-actions bot commented Aug 2, 2023

Hello @eightHundreds. We totally like your proposal/feedback, PR wanted。

你好 @eightHundreds,我们完全同意你的提议/反馈,欢迎 PR。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed / 老铁,赚 PR 的机会来了
Projects
None yet
Development

No branches or pull requests

2 participants