Skip to content

Wire "This helped me" button to Durable Object storage#26

Merged
alekslinde merged 1 commit into
mainfrom
feat/helpful-counter-durable-object
Jun 11, 2026
Merged

Wire "This helped me" button to Durable Object storage#26
alekslinde merged 1 commit into
mainfrom
feat/helpful-counter-durable-object

Conversation

@alekslinde

Copy link
Copy Markdown
Owner

Each tool now posts a vote to /u?k=h- and seeds its displayed count from the server-injected window.C on page load. localStorage prevents double-voting across sessions. Previously the button only incremented a local in-memory counter that reset on every page load.

Each tool now posts a vote to /u?k=h-<slug> and seeds its displayed
count from the server-injected window.__C__ on page load. localStorage
prevents double-voting across sessions. Previously the button only
incremented a local in-memory counter that reset on every page load.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 11, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
lindetoolbox 6e39463 Jun 11 2026, 12:33 PM

@alekslinde alekslinde merged commit 58d7260 into main Jun 11, 2026
1 of 2 checks passed
@alekslinde alekslinde deleted the feat/helpful-counter-durable-object branch June 11, 2026 12:34
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

Successfully merging this pull request may close these issues.

1 participant