是否要求render/destroy是同步函数? #441
Answered
by
zhoushaw
yanni4night
asked this question in
Q&A
-
通过阅读 core/src/module/app.ts: unmount() {
// ... 省略
try {
this.callDestroy(this.provider, true);// <<<< 🔥🔥🔥🔥
this.display = false; 相比于 single-spa 对 mount/unmount/bootstrap/update 的异步定义,garfish 是否要求render和destroy都为同步函数? |
Beta Was this translation helpful? Give feedback.
Answered by
zhoushaw
Mar 31, 2022
Replies: 1 comment
-
目前 Garfish 把所有异步的功能都收敛到了 Provider 里面,可以在 provider 过程中进行异步操作,让 render 和 destory 变成同步主要的原因也是避免渲染和销毁过程中出现应用的重复渲染 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
yanni4night
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
目前 Garfish 把所有异步的功能都收敛到了 Provider 里面,可以在 provider 过程中进行异步操作,让 render 和 destory 变成同步主要的原因也是避免渲染和销毁过程中出现应用的重复渲染