feat(view): stream deferred views - #295
Draft
petehunt wants to merge 2 commits into
Draft
Conversation
petehunt
force-pushed
the
agent/deferred-views
branch
from
August 3, 2026 02:12
f9eb521 to
6e4214b
Compare
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.
Depends on #292 and reworks the #290 streaming-shell concept around the ordinary
Viewtype. Review the commit aftera02c230for the deferred-view diff.Summary
defer component() { placeholder }syntax andView::deferfor manual futures.ShellView,include(), orfinish().<template>patches and apply them as they arrive with the parser-blocking externaldefer_script()asset, with no inline scripts.deferred-viewexample.This is more integrated than #290: it adds a deferred view-part variant, lets the router retain an owned request context while streaming, and makes
futures-utila normal router dependency. In exchange, every view can participate and composition needs no parallel type or helper. Deferred tasks are one-shot; cloned views share the same task.Testing
cargo +nightly fmt --allcargo topcoat fmt(expected Leptos parse errors only)cargo clippy --workspace --all-targets --all-features --locked -- -D warningscargo test --workspace --all-featuresRUSTDOCFLAGS="--cfg docsrs -Dwarnings" cargo +nightly doc --workspace --all-features --no-deps --lockedcargo check -p deferred-viewnode --check crates/topcoat/browser/defer.jsCreated by OpenAI Codex (GPT-5), which implemented and locally verified the change under maintainer direction.