alibaba / alibaba/lowcode-engine

如何让appHelper的更新触发renderer的重新渲染?

Open
#2,251 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
15.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

在renderer的上下文中有一个按钮,会动态给apphelper中的值更新。

![image](https://github.com/alibaba/lowcode-engine/assets/56390399/23c3797a-8d26-4599-ba15-833c4502ced1)

![image](https://github.com/alibaba/lowcode-engine/assets/56390399/783985b1-8944-4010-b9b6-7aa5380ac023)
![image](https://github.com/alibaba/lowcode-engine/assets/56390399/5254bd89-f178-4c68-aed2-70e42de999df)

可以看到appHelper中的trigger已经更新了,但是上面的根据trigger值控制显隐的内容却没有发生变化,这是Hello文本的渲染配置:
![image](https://github.com/alibaba/lowcode-engine/assets/56390399/9ec6c2ee-3745-4d2d-bc4b-be79ddd89739)

有什么方法可以让apphelper值的更新动态刷新渲染出的内容呢?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the renderer button scenario described in the issue and inspect how changes to appHelper.trigger reach the renderer. Trace the renderer update path and the Hello visibility configuration; done means changing appHelper.trigger updates the conditionally rendered content without a manual refresh.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.