Fix ReadableStream demos on iOS Safari - #8613
Open
aurorascharff wants to merge 1 commit into
Open
Conversation
aurorascharff
marked this pull request as ready for review
August 20, 2026 00:19
Size changesDetails📦 Next.js Bundle Analysis for react-devThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
for await...ofwithReadableStream.getReader()in all five browser-run stream demosTextDecoderafter the stream completeshttps://react-ke9zjr6ve-react-foundation.vercel.app/
Why
WebKit only added async iteration support for
ReadableStreamin Safari 26.4. On older iOS versions, clicking Render the page disables the button and then fails before writing content to the preview iframe. The reader API is supported on older Safari versions and is already used elsewhere in the docs.WebKit release notes: https://webkit.org/blog/17862/webkit-features-for-safari-26-4/#readablestream-async-iteration
Validation
yarn eslint src/content/reference/react-dom/browser.md src/content/reference/react/Suspense.md src/content/reference/react/use.md src/content/reference/react-dom/server/resume.mdyarn lint-heading-idsfor await...ofusage undersrc/contentbrowsersandbox end to end: the rendered page displays the article editor with no console warnings or errors