Skip to content

docs: lead query docs with .suspend(), hydrate() as the alternative - #2

Merged
Moon-DaeSeung merged 3 commits into
mainfrom
docs/suspend-first-queries
Oct 30, 2026
Merged

Moon-DaeSeung merged 3 commits into
mainfrom
docs/suspend-first-queries

Conversation

@Moon-DaeSeung

@Moon-DaeSeung Moon-DaeSeung commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • core/README.md "Queries and Next.js" leads with .suspend(arg) inside <Suspense>, with useServerInsertedHTML on ComwitProvider. Then .load(arg) covers client-only loading.
  • hydrate() is described as the SSR alternative for frameworks whose provider has no useServerInsertedHTML. There, the server response cannot reach the client cache, so client navigation requests it again. Next.js does not need it.
  • The experimental label is removed from .suspend() and the useServerInsertedHTML prop. This covers the provider.tsx JSDoc, @experimental on the suspend types, internal accessor comments, and type-test comments. There is no runtime change.

Docs only (plus JSDoc/comments). The site counterpart is comwit/comwit#156. The parent packages/state gitlink bump follows in a separate PR after this merges.

Verification

  • tsc -p tsconfig.type-tests.json --noEmit passes.

🤖 Generated with Claude Code

Moon-DaeSeung and others added 3 commits October 30, 2026 10:39
…native

Show .suspend() inside <Suspense> with useServerInsertedHTML on the provider
first, then .load() for client-only loading, and reduce hydrate() to the
fallback for reads that cannot run during SSR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rInsertedHTML

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rtedHTML

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Moon-DaeSeung
Moon-DaeSeung merged commit f6d11db into main Oct 30, 2026
2 checks passed
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