vite-plugin-react-server
Version:
Vite plugin for React Server Components (RSC)
18 lines • 814 B
TypeScript
import type { CreateRscStreamFn } from "./createRscStream.types.js";
/**
* Creates an RSC stream by communicating with the RSC worker.
*
* **Purpose**: Creates RSC streams by offloading React rendering to a separate worker thread.
* **When to use**:
* - You need to create RSC streams in a client environment
* - You want to avoid blocking the main thread during React rendering
* - You're building static sites and need RSC content for multiple routes
* - You need to create .rsc files for client-side navigation
*
* **Flow**: Route + Components → RSC Worker → RSC Stream
*
* @param options - Options for RSC stream creation
* @returns RSC stream with pipe/abort interface
*/
export declare const createRscStream: CreateRscStreamFn<"client">;
//# sourceMappingURL=createRscStream.client.d.ts.map