Skip to content

Conversation

@reidbarber
Copy link

@reidbarber reidbarber commented Jan 16, 2026

Related: adobe/react-spectrum#9489

Updates replaceStream to create a copy of the data before emitting it.

Previously, we were writing into the same buffer across chunks which could corrupt data that hadn't been consumed yet.

↪️ Pull Request

💻 Examples

🚨 Test instructions

✔️ PR Todo

  • Added/updated unit tests for this change
  • Filled out test instructions (In case there aren't any unit tests)
  • Included links to related issues/PRs

@reidbarber reidbarber changed the title test(core): add tests for WriteBundleRequest replaceStream fix(core): Copy buffer in replaceStream to prevent corruption from buffer reuse Jan 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant