Closed PeachScript closed 2 months ago
在 RSC 场景对 HMR 有两个新增需求:
action
_main
REF: https://github.com/umijs/mako/issues/1133
在 https://github.com/umijs/mako/pull/1369 里修复了。
在 RSC 场景对 HMR 有两个新增需求:
HMR runtime 支持(直接做 HMR 不做 reload 了)action
消息,允许 server 端主动触发客户端刷新,用于在 RSC server 产物更新时实现 Hot Reload,未来会再想方案支持 RSC server 组件的 HMR_main
,因为 client 组件会通过 async chunk 加载,被标记为_main
会出现 HMR 成功仍然 Hot Reload 的现象