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

feat: hmr channel supports action msg #1155

Closed
PeachScript opened this issue May 13, 2024 · 2 comments
Closed

feat: hmr channel supports action msg #1155

PeachScript opened this issue May 13, 2024 · 2 comments
Assignees

Comments

@PeachScript
Copy link
Member

PeachScript commented May 13, 2024

在 RSC 场景对 HMR 有两个新增需求:

  1. HMR runtime 支持 action 消息,允许 server 端主动触发客户端刷新,用于在 RSC server 产物更新时实现 Hot Reload,未来会再想方案支持 RSC server 组件的 HMR(直接做 HMR 不做 reload 了)
  2. 对于 async chunk 加载的模块,不能标记为 _main,因为 client 组件会通过 async chunk 加载,被标记为 _main 会出现 HMR 成功仍然 Hot Reload 的现象
@xusd320
Copy link
Contributor

xusd320 commented May 15, 2024

REF: #1133

@sorrycc
Copy link
Member

sorrycc commented Jul 17, 2024

#1369 里修复了。

@sorrycc sorrycc closed this as completed Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants