How to load comments dynamically on a JS app?
I have an app whose content is updated with JS (AJAX). I would like the comments to be updated too when the content is updated. First of all, I can use a
data-discussion-id to specify the comments that should be loaded. But I don't see how to refresh or reload the comments.
Currently the comments are in disqus and the implementation looks like this:
Any idea about how to do the same thing with TY?
- 2 replies
- DDashamir Hoxha @dashohoxha2021-04-04 00:06:13.418Z
Never mind. I found some way to make it work:
I am not sure if this is the best way, and I see some error messages on the console, but it seems to work anyway.