Skip to content

fix: preserve client-rendered content when streamed chunks arrive late - #477

Merged
JoviDeCroock merged 1 commit into
preactjs:mainfrom
JoviDeCroock:codex/preserve-client-stream-content
Sep 7, 2026
Merged

fix: preserve client-rendered content when streamed chunks arrive late#477
JoviDeCroock merged 1 commit into
preactjs:mainfrom
JoviDeCroock:codex/preserve-client-stream-content

Conversation

@JoviDeCroock

Copy link
Copy Markdown
Member

Skip late stream replacements when the boundary already contains client-rendered DOM, preserving state and event handlers. Recheck the boundary inside the queued animation frame and discard stale chunks while removing leftover fallback nodes.

@changeset-bot

changeset-bot Bot commented Sep 5, 2026

Copy link
Copy Markdown

馃 Changeset detected

Latest commit: 4b80672

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
preact-render-to-string Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@JoviDeCroock
JoviDeCroock merged commit 2525388 into preactjs:main Sep 7, 2026
1 check passed
@github-actions github-actions Bot mentioned this pull request Sep 9, 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.

2 participants