Skip to main content

CommentSection

Function CommentSection 

Source
pub fn CommentSection(props: CommentSectionProps) -> impl IntoView
Expand description

评论区段组件。

Props:

  • post_id:所属文章 ID

负责:

  • 提供 CommentContext 上下文
  • 加载本地待审核评论并定期轮询其审核状态
  • 加载已审核评论列表并合并展示(仅客户端加载,SSR 输出骨架屏)
  • 空评论时展示提示文案

§Required Props