Skip to content

docs(connection): document the initializing connection state - #320

Closed
arv wants to merge 1 commit into
mainfrom
arv/docs-1.11-initializing
Closed

arv wants to merge 1 commit into
mainfrom
arv/docs-1.11-initializing

Conversation

@arv

@arv arv commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

Documents the initializing connection state added in Zero 1.11 (rocicorp/mono#6561). This is a draft until 1.11 ships.

Changes (contents/docs/connection.mdx)

  • Overview: a note under the lifecycle diagram. Zero is in initializing while it loads local data, then moves to connecting and never returns to it.
  • Usage: an initializing case in the React, SolidJS and TypeScript examples.
  • Offline table: an initializing row. Reads are allowed and writes are queued.
  • Details: a new Initializing subsection. It covers:
    • what happens in this state;
    • that loading can take tens of seconds on slow devices (the PR measured 23–33 s on a slow Android device);
    • that it has no timeout and doesn't count against disconnectTimeoutMs;
    • what apps should show.
  • Connecting: no longer says Zero starts in this state.

Verified against the code at rocicorp/mono 22fa3c27e: ConnectionState in zero-client/src/client/connection.ts, the ConnectionManager constructor, #runLoop in zero.ts, and mutator-proxy.ts for writes.

Not done

  • public/images/connection-state/lifecycle.png still shows Zero starting in Connecting. It's a PNG with no source in the repo, so it needs a redraw.
  • assets/search-index.json is not regenerated, to avoid conflicts with the other 1.11 docs PRs. Regenerate it when merging.

Checks

prettier --check passes, and the page compiles as MDX.

🤖 Generated with Claude Code

https://claude.ai/code/session_01RRckJnCeGsYg9nCJSxBgTJ


Generated by Claude Code

@vercel

vercel Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
zero-docs Ready Ready Preview Oct 14, 2026 3:48pm UTC

Request Review

arv commented Oct 14, 2026

Copy link
Copy Markdown
Contributor Author

The Verify Signed Commit Authors check failed, but not because of what this PR changes. A cloud Claude Code session signed commit bef5671 with its own SSH key (SHA256:32dP45eSMmVSt/G/CGvcxl/P+MO3Nwj9xeTh/GSA2wc), which isn't in rocicorp/.github's allowed signers. A re-run won't fix it. To fix it, re-sign the commit with an allowed key:

git fetch origin arv/docs-1.11-initializing
git checkout arv/docs-1.11-initializing
git commit --amend --no-edit -S
git push --force-with-lease origin arv/docs-1.11-initializing

Generated by Claude Code

arv commented Oct 14, 2026

Copy link
Copy Markdown
Contributor Author

Folded into #325, which has all the 1.11 docs and the release notes in one PR. This commit is there unchanged.


Generated by Claude Code

@arv arv closed this Oct 14, 2026

This branch was successfully deployed

1 active deployment
Preview — bef56719 Deployed Oct 14, 2026 by vercel[bot]
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