Skip to content

renderToReadableStream Passes Reusable Chunks #24032

Closed
@sebmarkbage

Description

@sebmarkbage

cloudflare/miniflare#203

We switched to using "bytes" streams but, by spec, chunks get transferred in that format. Totally reasonable. However, we pass reusable chunks which then get detached. I'm not sure why the polyfill or fixtures didn't catch this.

We really should be using the byob model instead and copy into a larger chunk for perf anyway so this just makes that more urgent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    React 18Bug reports, questions, and general feedback about React 18Type: Bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions