Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clap count is not being record4ed #82

Open
bexxmodd opened this issue Aug 10, 2021 · 4 comments
Open

Clap count is not being record4ed #82

bexxmodd opened this issue Aug 10, 2021 · 4 comments

Comments

@bexxmodd
Copy link

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

@john-rock
Copy link

john-rock commented Aug 16, 2021

Have you tried setting the url attribute?

@bexxmodd
Copy link
Author

Have you tried setting the url attribute?

Can you tell me how can I do that?

@john-rock
Copy link

@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} />

@bexxmodd
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants