docs(rsc-integration): cover Server Actions via rscActionPluginFactory
The page declared Server Actions out of scope, which was true at time
of writing — the plugin only shipped rscServerPluginFactory. Since then
the package added rscActionPluginFactory + buildRscPayload + the
RscActionResult/RscPayload types specifically to make Server Actions
first-class on top of the router state.
Add a "Server Actions via rscActionPluginFactory" section between the
ssr-data-plugin composition recipe and Per-Request Isolation, with the
canonical request-handler threading: decodeAction / decodeFormState for
the progressive-enhancement form path, loadServerAction / decodeReply
for the hydrated-client path, then rscActionPluginFactory(() =>
actionResult) closure-capturing the result, then buildRscPayload(state)
for the Flight render call.
Also update "What This Doesn't Cover" — the Server Actions bullet now
says only the *transport primitives* live in the bundler, and links
to the new section for the routing-side recipe.
docs: update example paths to ssr-examples/ subgroup
After grouping React SSR examples under examples/web/react/ssr-examples/
(mirroring the animation-examples/ pattern), update GitHub `tree/master/`
links in:
- RSC-Integration.md (2 references)
- rsc-server-plugin.md (1 reference)
Streaming-SSR.md was already created with the new path layout.
docs(rsc): add RSC Integration guide + complete plugin documentation
- New: RSC-Integration.md — end-to-end integration guide covering the
three-environment runtime model (rsc/ssr/client), two-endpoint
architecture (HTML + /__rsc), Server Components in entry.rsc.tsx,
Flight streaming via rsc-html-stream, client mount with hydrateRouter
+ createFromReadableStream, single source of truth in App.tsx, and
revalidation pattern. Reference implementation:
examples/web/react/ssr-rsc/.
- New: rsc-server-plugin.md — plugin reference page (12 sections:
overview, sibling-of-ssr-data-plugin comparison, installation,
configuration, serialization with excludeContext, ReactNode rationale,
SSR-only design, revalidation, per-request isolation, gotchas, e2e
integration link, related pages).
- Updated: SSR-Hydration.md — document excludeContext option for
serializeRouterState + cross-link to rsc-server-plugin.
- Updated: plugin-architecture.md — add rsc namespace to built-in
context table; list rsc-server-plugin alongside ssr-data-plugin in
start-interceptor row; bump count from "Five plugins" to "Six".
- Updated: Data-Loading.md — new "Server-Rendered Data" section with
ssr-data-plugin vs rsc-server-plugin comparison + cross-link to
RSC Integration guide.
- Updated: _Sidebar.md — RSC Integration link in Concepts section
(next to Data Loading) + RSC Server section (next to plugin page).
Closes RFC-A Stage 2 (rfc-rsc-server-plugin.md) wiki announcements +
RFC-B Stage 5 (rfc-rsc-vite-example.md) documentation.