Patch Changes
-
Allow a
Querybuilt with Collection descriptors outside aDbClientto bind its sources when a client consumes it. Building or extending a query keeps descriptors unbound until that consumption. A reusable factory descriptor can now serve the same prebuilt query in separate client scopes, including React providers and server preloads. A prepared query is a bound snapshot; reuse the original unbound query across clients. The exported IR now represents an unbound descriptor withDescriptorRef; visitors ofIR.Frommust handle thedescriptorRefvariant. (#2077)React hooks bind standalone descriptor queries through their
DbProviderclient and report a provider hint when no client is available. Svelte hooks bind through their client and release deferred sources after failed query setup. -
Updated dependencies [
cda9d6a,2f928e6,dfec42e,1a65c2c,1b4ee8d,bbbf017,bc6f30e,fade2e2,bbe9327,b34a579,6fa60aa,f84387c,be4a3d6,0dc696a,fd13e3c]:- @tanstack/db@0.14.0