Skip to content

Fix content loss when blocks transition during streaming#1

Open
jscheid wants to merge 1 commit intodannote:masterfrom
jscheid:fix/block-transition-content-loss
Open

Fix content loss when blocks transition during streaming#1
jscheid wants to merge 1 commit intodannote:masterfrom
jscheid:fix/block-transition-content-loss

Conversation

@jscheid
Copy link
Copy Markdown

@jscheid jscheid commented Mar 12, 2026

When LiveView batches multiple deltas into one render, a block can go from "last" (updatable) to "not last" (frozen via phx-update=ignore) without the client ever receiving its final content. Track the previous render's last block index and give transitioning blocks one extra render cycle before freezing them.

When LiveView batches multiple deltas into one render, a block can
go from "last" (updatable) to "not last" (frozen via phx-update=ignore)
without the client ever receiving its final content. Track the previous
render's last block index and give transitioning blocks one extra
render cycle before freezing them.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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