Kind: Function
Source: src/jsx/streaming.ts
Part of: Jsx
Signature
tsfunction renderToReadableStream(content: HtmlEscapedString | JSXNode | Promise<HtmlEscapedString>, onError: (e: unknown) => string | void): ReadableStream<Uint8Array>
Parameters
| Name | Type |
|---|---|
content | `HtmlEscapedString |
onError | `(e: unknown) => string |
Returns: ReadableStream<Uint8Array>
Used by
2 references from 2 files. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.
Imported by (2)
RenderToStringOptions—src/jsx/dom/server.ts:11RequestContext—src/middleware/jsx-renderer/index.ts:14
Was this page helpful?