applause-button icon indicating copy to clipboard operation
applause-button copied to clipboard

Clap count is not being record4ed

Open bexxmodd opened this issue 4 years ago • 4 comments
trafficstars

Hello,

First thanks for the amazing project! I tried to add it to my blog but the clap count is not being recorded. And when I refresh the page the clap button is refreshed as well.

https://www.bexxmodd.com/blog/

example post with clap button: https://www.bexxmodd.com/post/5-reasons-why-use-rust/

thanks

bexxmodd avatar Aug 10 '21 13:08 bexxmodd

Have you tried setting the url attribute?

john-rock avatar Aug 16 '21 20:08 john-rock

Have you tried setting the url attribute?

Can you tell me how can I do that?

bexxmodd avatar Aug 24 '21 04:08 bexxmodd

@bexxmodd Example from the landing page <applause-button url="google.com" />

If you're using a template for your blog post pass in the URL dynamically. Here's an example of how I am using it in my post template and it seems to be working as expected.

const url = `https://www.example.com/blog/${slug.current}`
...
...
<ApplauseButton url={url} />

john-rock avatar Aug 25 '21 17:08 john-rock

thanks, @john-rock I did that but still the same issue. Multi clap works fine, but the clap counter is still reset after I refresh the page

bexxmodd avatar Aug 27 '21 10:08 bexxmodd