Skip to content

docs(rsc): document use cache examples - #1407

Merged
hi-ogawa merged 36 commits into
mainfrom
docs/use-cache-callable-readme
Aug 6, 2026
Merged

docs(rsc): document use cache examples#1407
hi-ogawa merged 36 commits into
mainfrom
docs/use-cache-callable-readme

Conversation

@hi-ogawa

@hi-ogawa hi-ogawa commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

The two "use cache" examples cover complementary layers, but the local runtime README is currently terse and the callable integration boundaries are otherwise only discoverable from implementation and E2E tests.

This PR documents the local example's argument serialization, Flight replay, temporary-reference children, closure keys, and invalidation semantics. It also documents the callable example's directive forms, server-reference transport, argument admission, encrypted captures, and hydrated form caveat, with cross-links and updated package-level descriptions distinguishing their scope.

hi-ogawa and others added 27 commits August 5, 2026 09:26
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Exclude React form transport fields from cache identity while preserving the original FormData for execution.

Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Keep FormData cache identity unchanged and point to custom form adaptation as the framework-level improvement path.

Co-authored-by: OpenCode <noreply@opencode.ai>
Store the asynchronous encryption result in the envelope so the cache wrapper can inspect its sentinel without awaiting the argument.

Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Adapt encrypted transport arguments to decoded implementation arguments in the cache runtime, allowing the generated implementation to destructure captures directly.

Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>

# Conflicts:
#	packages/plugin-rsc/examples/use-cache-callable/callable-cache-plugin.ts
#	packages/plugin-rsc/examples/use-cache-callable/src/framework/use-cache-runtime.tsx
Co-authored-by: OpenCode <noreply@opencode.ai>

# Conflicts:
#	packages/plugin-rsc/examples/use-cache-callable/src/framework/use-cache-runtime.tsx
Use the decoded execution argument serialization directly for cache identity instead of flattening and encoding captures separately.

Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Base automatically changed from refactor/use-cache-single-decode to main August 6, 2026 02:55
hi-ogawa and others added 2 commits August 6, 2026 11:58
Document the local cache runtime semantics alongside the callable server-reference integration, and clarify their complementary scope in the package overview.

Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
@hi-ogawa hi-ogawa changed the title docs(rsc): document callable cache example docs(rsc): document use cache examples Aug 6, 2026
hi-ogawa and others added 4 commits August 6, 2026 14:20
Show how local and callable directives lower into their respective cache runtime contracts, and identify the public transform and server-reference APIs involved.

Co-authored-by: OpenCode <noreply@opencode.ai>
hi-ogawa and others added 2 commits August 6, 2026 14:49
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
@hi-ogawa
hi-ogawa marked this pull request as ready for review August 6, 2026 05:51
@hi-ogawa
hi-ogawa merged commit 4b0e3c7 into main Aug 6, 2026
22 checks passed
@hi-ogawa
hi-ogawa deleted the docs/use-cache-callable-readme branch August 6, 2026 06:01
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