umputun / remark42

comment engine
https://remark42.com
MIT License
4.91k stars 385 forks source link

Comment counter issue in React #1590

Closed xRitsu closed 1 year ago

xRitsu commented 1 year ago

When using dynamic routing on a single-site project with the use of React and NextJS, using a link that leads to another page, then navigating back to the page where Remark42 is displayed, causes the comment counter to disappear. Untested with pure React, all I know is that it didn't work with the Link component from NextJS (and their Router API as well), so it probably doesn't work properly in general.

Any possible workaround to this? I am now forced to fetch the number of comments manually, but this does not have dynamic updates.