alibaba/lowcode-engine

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

Open

#2,262 opened on Jul 10, 2023

View on GitHub
 (4 comments) (0 reactions) (1 assignee)TypeScript (2,228 forks)batch import
help wanted

Repository metrics

Stars
 (12,714 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

背景

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

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

Contributor guide