We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ProjectSchema.config在我的实际需求中会比较容易变化。
之前的方案是修改ProjectSchema,再用project.importSchema去更新,并用project.onChangeDocument去监听变化,但是这种方案会引发#1122 问题。 官方没对这个api没有很清晰的描述,我只能假定该方法只适合初始化是调用。于是改成,project.setConfig方式修改config。但这个api无法被监听。
project.importSchema
project.onChangeDocument
project.setConfig
The text was updated successfully, but these errors were encountered:
这个 api 会自动触发 simulator 中监听的 connect 以重新获取配置。
#1742
你这里说的监听,是希望有 API 可以让你感知到它更新吗?
Sorry, something went wrong.
这个 api 会自动触发 simulator 中监听的 connect 以重新获取配置。 #1742 你这里说的监听,是希望有 API 可以让你感知到它更新吗?
对
这个目前的确没有,可以提 PR 支持一下。
Hello @eightHundreds. We totally like your proposal/feedback, PR wanted。
你好 @eightHundreds,我们完全同意你的提议/反馈,欢迎 PR。
liujuping
No branches or pull requests
背景
ProjectSchema.config在我的实际需求中会比较容易变化。
之前的方案是修改ProjectSchema,再用
project.importSchema
去更新,并用project.onChangeDocument
去监听变化,但是这种方案会引发#1122 问题。 官方没对这个api没有很清晰的描述,我只能假定该方法只适合初始化是调用。于是改成,project.setConfig
方式修改config。但这个api无法被监听。The text was updated successfully, but these errors were encountered: