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

开发模式下新增 hotreload 支持 #1182

Open
eryue0220 opened this issue Apr 23, 2024 · 1 comment
Open

开发模式下新增 hotreload 支持 #1182

eryue0220 opened this issue Apr 23, 2024 · 1 comment
Labels
feature Planned functions

Comments

@eryue0220
Copy link

背景

在 Next 主项目中,每次热更新时,总会触发异常
image

期望的效果

开发模式下移除该告警,新增 destroy api,作为 start 方法返回值,示例代码:

useEffect(() => {
   cons app = microApp.start();
   return () => {
      app.stop();
  };
}, []);
@bailicangdu
Copy link
Member

microApp.start()全局只能执行一次,如果多次执行会抛出错误警告但对实际功能没有影响

@bailicangdu bailicangdu added the feature Planned functions label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Planned functions
Projects
None yet
Development

No branches or pull requests

2 participants