vite-plugin-react-server
Version:
Vite plugin for React Server Components (RSC)
17 lines • 639 B
TypeScript
import type { HandleRscStreamFn } from "./handleRscStream.types.js";
/**
* Client-side RSC stream handler using unified stream management
*
* Handle = calling createRscStream and handling errors
* - panicThreshold
* - verbose logging
* - calling event handlers
* - passing the correct options to createRscStream
* - unified stream management with consistent error handling
*
* @param worker - The worker thread
* @param message - The RSC render message
* @returns A ReadableStream that yields RSC chunks
*/
export declare const handleRscStream: HandleRscStreamFn<"client">;
//# sourceMappingURL=handleRscStream.client.d.ts.map