About
+This is the about page.
+[test-style-home]
+ +renderToReadableStream"| B1["RSC Stream"];
+ end
+
+ B1 --> B2
+ B1 --> B3
+
+ subgraph "ssr environment"
+ B2["RSC Stream"] --> |"[@vitejs/plugin-rsc/ssr]createFromReadableStream"| C1["React virtual dom tree"];
+ C1 --> |"[react-dom/server]createFromReadableStream"| C2["React virtual dom tree"];
+ C2 --> |"[react-dom/client]This is the about page.
+[test-style-home]
+ +This is the home page.
+ [test-style-home] +
+ loaderData: {JSON.stringify(loaderData)}
+
+
+ {JSON.stringify(
+ {
+ ...error,
+ name: error.name,
+ message: error.message,
+ },
+ null,
+ 2,
+ )}
+
+ {error.stack && {error.stack}}
+ {message}
+ >
+ )
+}
diff --git a/packages/plugin-rsc/examples/react-router/app/routes/test-action-state/client.tsx b/packages/plugin-rsc/examples/react-router/app/routes/test-action-state/client.tsx
new file mode 100644
index 000000000..520dab494
--- /dev/null
+++ b/packages/plugin-rsc/examples/react-router/app/routes/test-action-state/client.tsx
@@ -0,0 +1,19 @@
+'use client'
+
+import React from 'react'
+
+export function TestActionStateClient(props: {
+ action: (prev: React.ReactNode) => PromiseNot found
+ } + + return ( + + + + +