giscus / giscus-component

Component library for giscus, a comment system powered by GitHub Discussions.
https://giscus-component.vercel.app
MIT License
299 stars 25 forks source link

数据不及时 #2094

Closed chergn closed 1 week ago

chergn commented 3 weeks ago

随便在一个页面评论了,然后点击去别的页面,发现还是上一个页面的数据。但是刷新就好了

louiesun commented 1 week ago

我也遇到了。 使用vue。 在vitepress下。 很显然,我估计giscus没有重新渲染,所以用的还是上一个页面的dom元素。

laymonage commented 1 week ago

You can pass the page's identifier as the key prop to the component so it re-renders when you navigate to different pages.

louiesun commented 1 week ago

You can pass the page's identifier as the key prop to the component so it re-renders when you navigate to different pages.

Solved, thank you!