Skip to content

Commit 2aa9e86

Browse files
ryansolidclaude
andauthored
frames: move the range morph into the lazy wire tier (#4150)
* frames: move live-hole appliers into the lazy wire tier The hole and attr-hole morph paths leave the eager frames client and live in `wire`, which the server now announces whenever a response or document carries a live hole. Hole records that land before the tier is resident stay pending and are applied by the install's flush. Row ops stay gated on live responses. Frames client 12,980 -> 12,704 B br; every server-components page drops 235-372 B br. Caps lowered to measured + 10 B. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012xU4iGQqRKP12d5Nkr4BA2 * frames: move the range morph into the lazy wire tier reconcileChildren, the graft walk and the keyed range moves leave the eager frames client for `wire`. A root over shown content waits in the flush until the tier is resident; a version bump or rebind over content starts the load at the header. Adoption and first materialize never morph, so pages that never refetch or navigate never load it. Frames client 12,704 -> 11,919 B br; server-components pages drop 697-776 B br. Caps lowered to measured + 10 B. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012xU4iGQqRKP12d5Nkr4BA2 * frames: start the morph's wire tier load with a frame request Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012xU4iGQqRKP12d5Nkr4BA2 * size: re-measure caps with the request-time wire load Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012xU4iGQqRKP12d5Nkr4BA2 * frames: keep the morph in an untyped module so test-types passes The morph came from the @ts-nocheck eager client; wire-tier.ts is type-checked, so it bundles the morph from frame-morph.ts instead. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012xU4iGQqRKP12d5Nkr4BA2 --------- Co-authored-by: Claude <[email protected]>
1 parent 745e807 commit 2aa9e86

11 files changed

Lines changed: 502 additions & 405 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@solidjs/web": patch
3+
---
4+
5+
Frames: the range morph (the reconcile that lands a refetched or navigated root over shown content) moves out of the eager frames client into the lazy `wire` tier, about 790 B brotli off every server-components page. A frame call on a page that shows frames starts the tier's load with its request (so a router's hover preload warms it), and a root landing over shown content waits for the tier; adoption and first materialize never morph and never load it.

‎packages/web/frames/src/client.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,10 @@ tierLoaders.assets = () => import("@solidjs/web/frames/assets");
124124
// the body is read, so a live connection without the tier cannot happen.
125125
// The server announces `wire` too (`X-Frame-Tiers` on a live response,
126126
// `sc:tiers` on a document carrying a live source). The module's exports
127-
// are the dispatch (`connect`, `cancel`, `resume`, `have`); no install.
127+
// are the dispatch (`connect`, `cancel`, `resume`, `have`, the live
128+
// appliers and the range morph); no install. The morph makes the tier load
129+
// on the first refetch or navigation too: a frame starts it at the new
130+
// version's header and its root waits for it.
128131
tierLoaders.wire = () => import("@solidjs/web/frames/wire");
129132

130133
// Build-time literal (see diagnostics.ts): dev-only guidance folds out of prod.

‎packages/web/frames/src/frame-client.ts‎

Lines changed: 34 additions & 366 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)