Pre-beta, under heavy active development: the API changes often and nothing here is stable yet.

Spar

Spar beside Solid 2.0

Solid 2.0 came out on 16 Nov 2026. This page is read from the published package solid-js 2.0.3: its CHEATSHEET.md, its diagnostics.json and its skills/reactivity-diagnostics/SKILL.md. No Solid 2 app was written for it beyond the benchmark's table (apps/bench-solid2), so what follows is what Solid says it does, not what was seen it do, except where the benchmark is named.

Data that arrives later

Solid 2.0Spar
Declaring itAny computation that returns a promise: createMemo(() => fetchUser(id()))A query class with Schemas, then yield* TheQuery.ask(input) in the component
Reading it before it is thereThe read is "not ready" and the nearest <Loading> shows its fallbackNothing waits: the handle is there at once, and the view shows its status
One piece that needs anotherA computation reads the other's value, so it runs when that value is readyThe second query's input is made from the first one's value; it is waiting until then
While the input changesisPending(() => user()), latest(id), and createDeferred to keep the last value on screenstatus is loading; latest keeps the last loaded value
A request that is supersededThe earlier run is cleaned up, and an AbortController registered in it can cancel the requestThe earlier answer is ignored when it lands, because it is not for the newest request. The request is not cancelled
A cache by input, a stale timeNot in the core: a computation holds the value for its current inputsYes: entries keyed by the encoded input, staleAfter, refetch on focus and reconnect
A change shown before it is savedaction with createOptimisticStore; the optimistic value reverts by itself when the work settlesTheQuery.patch(input, f) beside an Outbox.channel send; the send survives a reload and is retried, and on Outbox.givenUp the query loads what the server has
Failure<Errored>, or an effect's error optionThe handle's error, typed by the query's failure Schema; retry takes a schedule
Asking againrefresh(user), with affects(user) to show it as pendingThe handle's refetch, or TheQuery.invalidate from any Effect

The same idea in both. Data that arrives later is a reactive value. What depends on it is known from what reads it, so nobody lists dependencies or writes a loader beside the route, and independent pieces load side by side.

What Solid does better.

  • There is nothing to declare. An async value is a memo, and the old resource primitive is gone.
  • A change in flight is a first-class thing: the screen holds what it showed, isPending says a change is on the way, and an optimistic value reverts by itself.
  • A superseded request can be cancelled, not only ignored.
  • It is smaller, quicker to start and quicker at most table work. In this repo's benchmark the Solid 2 table ships 23.7 kB of JavaScript (gzip) against Spar's 60.6 kB, starts in 6.5 ms against 11.0 ms, changes one row among 10,000 in 0.8 ms against 1.0 ms, and selects, swaps and removes rows among 1,000 faster. Spar is ahead of it only at updating every 10th row (docs/benchmarks.md).
  • Its run-time diagnostics go much further: 75 codes in diagnostics.json against Spar's 34, among them slow scopes, effects that write their own source, and requests thrown away.

What Spar adds.

  • Typed failure and typed requirements. A query's failure is a Schema and its services are in its type; a component cannot be mounted without the layers its queries need.
  • A cache with a key and a stale time, in the framework.
  • One log. Every request and answer is an entry in the same log as every store command and UI state change, so the app can be rewound and forked with its server data.
  • Traces without a collector: one navigation is one trace, with lenses and the wait of a dependent query drawn.
  • One state for everything: stores, components' own state and queries are slots in one tree.
  • An outbox that keeps what was sent across a reload and sends it again.

Finding a waterfall

Solid 2.0Spar
WhenWhile the app runs in a dev build, with attribution turned onAt compile time for a query with no input chained onto another; at build time for a wait written in a component; while the app runs for the rest
What is reportedASYNC_WATERFALL: a chain of requests where each "provably could not start until the previous one resolved", with the time each link tookSPAR_NEEDLESS_WAIT (types): a query that takes no input given another query's value does not compile. SPAR_WAIT_IN_COMPONENT (build): a yield* of a wait in a component's Effect. SPAR_COMPONENT_WAITED (log): a component that held its children back, with the milliseconds
On the serverSSR_BOUNDARY_WATERFALL: a <Loading> boundary that needed three or more passesNothing reported. The server draws again until nothing is loading, and does not say how many times
How sure it isTwo links are reported as information, "leads, not verdicts"; three or more as a warningThe build rule is certain but narrow; the run-time note fires on time taken, 16 ms or more
A chain that is neededReported all the same, with advice to preload or join the requests on the serverNot reported as a problem. It is visible in the trace: the wait is drawn and the request names what its input came from
Known false findingWork a preloader or cache had already started; that layer marks its promises with attribution.markFlightNone known for the build rule. The run-time note can fire on a slow machine

Where the waterfalls come from differs. In Solid a read of a value that is not ready stops the scope there, so a second read below it does not start until the first has answered; its advice is to "read ALL async sources before using any". In Spar ask returns at once, so two asks in one component always start together, and the only way to make a waterfall is to wait in a component's Effect, which is what the two Spar checks look for.

Spar now reports a chain too (SPAR_QUERY_CHAIN): three or more requests that each waited for the one before, or two where the second had the same input as the first and so did not need its answer. It is worked out from the spans of a trace, so it shows in the trace panel and comes back from the agents' navigation tool. It says how long after the one before each request started. What Solid's check still does that Spar's does not: it warns from the running app without anyone asking for a trace.

What Spar's check does that Solid's does not, as far as the package shows: it stops the build before the code runs.

Errors written for agents

Solid 2 ships diagnostics.json (code, kind, severity, trigger, repair, guide address), prints a report as [CODE] message, an in line with the owners, an at line with the file, line and column, and points an agent at a skill file with a section for each code. Spar now does the same in its own terms: docs/diagnostics.md. A crashed part and a component that held its children back are reported with the path of owning components and the file, line and column where the view was made. What Spar's reports still lack next to Solid's: a location for anything finer than a view (a binding, an effect), and an owner path on a store command, which has no component.

Routing and preloading

Read from the README of Solid Router's main branch, whose 1.0 line targets Solid 2.

Solid Router 1.0Spar
Where a route's data isA query function, read with a memo in the component, and started early by the route's preloadask in the component; nothing is declared on the route
Preload on intentOpt-in for the router: after the pointer rests on a link for 20 ms, or on focus or touchOpt-in for each link: onIntent on the anchor
What preloading runsThe target route's preload functions and lazy componentsA rehearsal that mounts the app at the target without drawing it, which reaches every ask
How long preloaded data counts as fresh5 seconds, so the preload and the route's own read share one fetchData a preload or the server loaded is used once by the first real read, whatever staleAfter is; after that, staleAfter (500 ms unless set)
Going backA back and forward cache for up to 5 minutesThe query's cache, by staleAfter; scroll position is restored
After a mutationrevalidate by key; single flight returns the refreshed route data in the mutation's responseTheQuery.invalidate or TheQuery.patch in the Effect that made the change; the refetch is a second request

Two things Solid Router does that bear on Spar's list of open cases. Preloaded data is fresh for a few seconds by itself; Spar uses data loaded ahead once whatever the stale time, and keeps any answer fresh for 500 ms by default. And a mutation's answer brings the refreshed data with it, where Spar asks again.