SukkaW / DisqusJS

:speech_balloon: Render Disqus comments in Mainland China using Disqus API
https://disqusjs.skk.moe
MIT License
641 stars 55 forks source link

评论嵌套问题 #8

Closed SukkaW closed 5 years ago

SukkaW commented 5 years ago

https://blog.fooleap.org/disqus-api-comments-order-by-desc.html

即 子评论 排序在前面,而其父评论尚未加载出来(可能在下一页),那么这个 子评论 就会不会被展示。

SukkaW commented 5 years ago

解决方案:将所有已经获取的评论数据存在 disqusjs.page.comment 字段下面,然后每次加载一页的评论时就把所有评论全部重新渲染一遍。