Skip to content

docs: make the README counter quickstart match the gif#73

Merged
joaomdsg merged 1 commit into
mainfrom
docs/counter-matches-gif
May 31, 2026
Merged

docs: make the README counter quickstart match the gif#73
joaomdsg merged 1 commit into
mainfrom
docs/counter-matches-gif

Conversation

@joaomdsg

Copy link
Copy Markdown
Member

The README counter example (Hits + Step Signal) didn't match the
counter-scope.gif below it, which demonstrates tab-local vs app-shared
state. This swaps in a distilled version of internal/examples/counterscope:
a Local counter (StateTab, per-tab) and a Shared counter (StateApp,
synced across every session). Run command now points at counterscope.

Snippet compile-checked against the module.

Replace the Hits/Step counter with the tab-vs-app scope example the
counter-scope gif actually shows: a Local counter (StateTab, per-tab) and a
Shared counter (StateApp, synced across every session). Point the run command
at ./internal/examples/counterscope. Snippet compile-checked against the
module.
@joaomdsg
joaomdsg merged commit ca92c46 into main May 31, 2026
4 checks passed
@joaomdsg
joaomdsg deleted the docs/counter-matches-gif branch May 31, 2026 14:40
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