You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- This demonstrates how to integrate [experimental React Router RSC API](https://remix.run/blog/rsc-preview) with this plugin. It also includes `@cloudflare/vite-plugin` integration with multi workers setup.
29
29
-[`./examples/basic`](./examples/basic)
30
-
- This is mainly used for e2e testing and include various edge cases. It also uses a high level `@hiogawa/vite-rsc/extra/{rsc,ssr,browser}` API for quick setup.
30
+
- This is mainly used for e2e testing and include various edge cases. It also uses a high level `@vitejs/plugin-rsc/extra/{rsc,ssr,browser}` API for quick setup.
31
31
32
32
## Basic Concepts
33
33
@@ -39,19 +39,19 @@ This is the diagram to show the basic flow of RSC rendering process. See also ht
39
39
graph TD
40
40
41
41
subgraph "<strong>rsc environment</strong>"
42
-
A["React virtual dom tree"] --> |"[@hiogawa/vite-rsc/rsc]<br /><code>renderToReadableStream</code>"| B1["RSC Stream"];
42
+
A["React virtual dom tree"] --> |"[@vitejs/plugin-rsc/rsc]<br /><code>renderToReadableStream</code>"| B1["RSC Stream"];
43
43
end
44
44
45
45
B1 --> B2
46
46
B1 --> B3
47
47
48
48
subgraph "<strong>ssr environment</strong>"
49
-
B2["RSC Stream"] --> |"[@hiogawa/vite-rsc/ssr]<br /><code>createFromReadableStream</code>"| C1["React virtual dom tree"];
49
+
B2["RSC Stream"] --> |"[@vitejs/plugin-rsc/ssr]<br /><code>createFromReadableStream</code>"| C1["React virtual dom tree"];
-`createFromReadableStream`: RSC deserialization (RSC stream -> React VDOM). This is also available on rsc environment itself. For example, it allows saving serailized RSC and deserializing it for later use.
220
220
-`decodeAction/decodeReply/loadServerAction`: server function related...
221
221
222
-
### `@hiogawa/vite-rsc/ssr`
222
+
### `@vitejs/plugin-rsc/ssr`
223
223
224
224
This module re-exports RSC runtime API provided by `react-server-dom/client.edge`
This is a wrapper of `react-server-dom` API and helper API to setup a minimal RSC app without writing own framework code like [`./examples/starter/src/framework`](./examples/starter/src/framework/). See [`./examples/basic`](./examples/basic/) for how this API is used.
0 commit comments