Skip to content
New issue

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

ResourceConsumer 无法多次消费 #2812

Closed
web-linda opened this issue Jan 3, 2024 · 3 comments
Closed

ResourceConsumer 无法多次消费 #2812

web-linda opened this issue Jan 3, 2024 · 3 comments
Labels
wontfix This will not be worked on / 不是问题,再见少侠

Comments

@web-linda
Copy link

Describe the bug (required) / 详细描述 bug(必填)

引擎设计器作为qiankun的子应用,当设计器组件卸载后,host-view 同样被卸载;当再次加载设计器子应用,react-simulator-renders host.componentsConsumer.consume 无法二次消费,appHelper中 utils 无法正常加载到模拟器中,查看源码得知:
ResourceConsumer consume 函数中有
if (this._consuming) {
return;
}
导致二次消费被拦截,无法多次消费。

期望 consume 可以多次消费。

@web-linda
Copy link
Author

考虑是否可以去掉此拦截

@JackLian JackLian added the wontfix This will not be worked on / 不是问题,再见少侠 label Jan 3, 2024
@JackLian
Copy link
Collaborator

JackLian commented Jan 3, 2024

低代码引擎by design是不能作为spa的一部分的

@JackLian JackLian closed this as completed Jan 3, 2024
@web-linda
Copy link
Author

1 可否解释下代码中 if (this._consuming) {return;} 的意义呢?
2 如果设计器需要作为组件使用,该如何处理呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on / 不是问题,再见少侠
Projects
None yet
Development

No branches or pull requests

2 participants