Cnfzh 软件博客

一次 Prerender 与 Circuit 的踩坑记录

标记注释被移除、WebSocket 建连却无事件——问题出在边界上。

现象

交互组件能渲染、能建连,点击却毫无反应。

定位

组件被动态渲染时,页面自身的渲染模式边界挂不上事件监听。把整棵树放进一个电路后恢复正常。

教训

渲染模式的传播是自上而下的,想当然地在页面上加特性不管用。

评论 0

还没有评论,来说两句吧。

提交前需验证邮箱,验证码 10 分钟内有效。

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.