Patch Changes
- 56bca54: fix(signals): a declared reload (
affects()+refresh()) whose re-ask rejects no longer leavesisPendingstuck true (#5329) - f7b6b9c: An action started while a transition lands, from a cleanup (
onCleanupor an effect's returned cleanup) or from an optimistic value'sequals, no longer leaves the flush pointing at the landed transaction. Before, the next action merged into it: its write showed but was never committed, and a later write that compared against the signal was skipped (#5233). An action that yielded could also commit its first write during theyield. - a3df43a: Development: whether a cleanup may write is now decided by the scope it belongs to, not by where teardown runs it. A setter, store setter,
refreshoractioncall from anonCleanupis an owned write again (REACTIVE_WRITE_IN_OWNED_SCOPE,ACTION_CALLED_IN_OWNED_SCOPE), under a removed<For>row and under a<Show>branch alike. A cleanup returned from an effect callback or fromonSettledmay still write and call actions. Move the write into a returned cleanup, or mark the signalownedWrite. Production output is unchanged by this. - e0f2ad4:
createRootcallsinitwithout allocating a wrapper closure for each root. Creating a root is 10 to 25% faster in a Node microbench;initstill receivesdisposeas its only argument. - 162d46a: In production, an effect that returns a non-function cleanup no longer stores that value. The next run used to call it and halt the reactive system. Development still throws on the run that returned it.
- cc4b6cf: Hydration no longer discards a served element and calls its ref twice when the ref reads a signal whose value differs from the hydration snapshot. The ref is served the snapshot and runs once on the served element; its read no longer replays the pass that created the element.
- a88836f: Defer mid-flush
ASYNC_OUTSIDE_LOADING_BOUNDARYdiagnostics until aftersettle(), so pending reads inside a<Loading on>boundary whoseoncomputation sits higher in the heap run and re-arm the boundary before the warning is evaluated. - a440e01: Fix a production-compiled
<Show>whose condition readsisPending()re-running without end while a refetch is in flight. The lowered<Show>makes a new condition memo on every pass, and the old one, kept as a zombie during the hold, was re-run at the end of each flush and woke the<Show>again. A zombie that only its own owner reads is no longer re-run. - 9f7d51d: Do not keep an inner error boundary's pending reader attached to an outer error boundary after an async rejection is caught by the inner boundary (#5261).
- ae5ce50: Avoid retrying an errored computation while checking dependencies for a newly mounted reader. Failed optimistic sources retain their error until an existing reader re-reads them or an explicit refresh requests recovery.
- 44f26d6: Fix
Object.keysthrowing on arrays inside client projection drafts. - 14f48f4: Keep platform objects such as dates and maps raw in deep projection drafts so their native methods work on the client and server.
- 510bb8d: A keyed
reconcilekeeps a row's store proxy when the row is matched by key, even if nothing has subscribed to any of its fields. Before, such a row got a new proxy at every reconcile, so a<For>over the list disposed and remade the row and lost its local state. Updates to the kept proxy follow normal store flush and transition timing. - 50a4bfd: fix(signals): a re-parked reader drops a pending source that was disposed while loading, so a hold whose owner re-ran and replaced that source lands, and a staged error reaches its boundary
- 0e29f37: Keep ready loading boundaries on their fallbacks when a sibling is still pending during the initial mount of a together reveal group.
- a50909b: New dev diagnostic
RUN_WITH_ANCESTOR_OWNER(#5280). A running computation that usesrunWithOwnerto create a node on one of its own ancestors gets a warning. A typical case is a memo created lazily on first read under the component's captured owner. That node outlives the code that made it, and it takes the ancestor's next child slot at the moment of the read, which shifts hydration ids so later siblings miss their claims. The fix is to make the owner up front (const scope = createRoot(() => getOwner())) and create lazily under it, asmapArraydoes. Re-entries from event handlers, timers and async continuations, re-entries that only read context, and nodes created with anidoption ortransparentare not reported. Dev only, with no production bytes. - 6181f4b: Show a second whole-list guess on a keyed
createOptimisticStorethat rewrites a row back to the value its truth holds while an earlier guess on that row is still out. The list used to treat the rewritten row as the truth's own row, which is the row already shown, so it wrote nothing and the first guess stayed on screen. - 46e665b: Stores run on one signal per key a reader touches (the "thin" engine), in place of the deep engine's per-target committed backing and overlay. The public store API is unchanged, with one correctness fix: a store write now becomes visible at the flush that carries it for every reader, the same as a signal write. The deep engine let some reads between a setter and its flush see the new value early; those reads now return the old value until
flush(). An app with stores ships about 0.65 to 1.3 KB less brotli, and an app without stores ships no store code at all. A push to a list no reader has read yet is now kept for a boundary that resumes after it, so the resume claims the server's rows and catches up (GH3).