File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ import {
1111} from '../browser'
1212import type { RscPayload } from './rsc'
1313
14+ /**
15+ * @deprecated Use `@vitejs/plugin-rsc/browser` API instead.
16+ */
1417export async function hydrate ( ) : Promise < void > {
1518 const callServer : CallServerCallback = async ( id , args ) => {
1619 const url = new URL ( window . location . href )
@@ -71,6 +74,9 @@ export async function hydrate(): Promise<void> {
7174 }
7275}
7376
77+ /**
78+ * @deprecated Use `@vitejs/plugin-rsc/browser` API instead.
79+ */
7480export async function fetchRSC (
7581 request : string | URL | Request ,
7682) : Promise < RscPayload [ 'root' ] > {
Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ export type RscPayload = {
1414 returnValue ?: unknown
1515}
1616
17+ /**
18+ * @deprecated Use `@vitejs/plugin-rsc/rsc` API instead.
19+ */
1720export async function renderRequest (
1821 request : Request ,
1922 root : React . ReactNode ,
Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ import { injectRSCPayload } from 'rsc-html-stream/server'
55import { createFromReadableStream } from '../ssr'
66import type { RscPayload } from './rsc'
77
8+ /**
9+ * @deprecated Use `@vitejs/plugin-rsc/ssr` API instead.
10+ */
811export async function renderHtml (
912 rscStream : ReadableStream < Uint8Array > ,
1013 options ?: {
You can’t perform that action at this time.
0 commit comments