alibaba / alibaba/lowcode-engine

乾坤微服务的方式接入渲染器,无法保证物料的执行顺序,可以推动下乾坤支持吗?

Open
#1,452 16 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

## **Describe the bug (required)** / **详细描述 bug(必填)**
目前渲染器加载物料是通过head中动态插入scriptb标签的方式加载,
image
但是在乾坤的微服务子应用中,因为乾坤的沙箱机制,动态脚本被劫持,
image
不能保证多个物料的执行顺序,相当于script标签的async属性在乾坤沙箱中的行为和浏览器默认行为不一致,谁先下载完谁先执行从而互相依赖的物料报错,目前关闭乾坤沙箱可以保证物料执行顺序,但是关闭沙箱会出现其他问题

以下是乾坤中相关的issue,
https://github.com/umijs/qiankun/issues/1207
https://github.com/umijs/qiankun/issues/1234
https://github.com/umijs/qiankun/issues/470

可以推动下乾坤支持script标签的async与浏览器默认行为一致吗?
或者适配下物料的加载方式,增加个属性控制某些互相依赖的的物料按顺序加载执行?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the renderer's dynamic script loading behavior in a qiankun microservice child application, then read qiankun issues #1207, #1234, and #470. Reproduce the dependency-order failure with the sandbox enabled and compare it with sandbox-disabled behavior. Done means an agreed qiankun-compatible loading approach or explicit ordering option reliably executes dependent materials in order.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.