function
useAsyncDatafunction
Observes an existing AsyncData producer without nesting its state model.
useRefSubjectfunction
Observes any RefSubject, including hydrated refs with typed failures. Writes use its serialized transactions; failures also reach
statewhen a native binding ignores the returned Exit. Unmount/runtime replacement cancels writes. The first subscription receives the optional initial value orundefined. Lazy initializers only start after mount;initialcan seed matching SSR and hydration values without executing application effects during rendering.useServicefunction
Reads any Effect service using the same runtime, SSR, and failure contract.
useSourcefunction
Observes an Effect, Stream, Fx, or value after mount. A Svelte source store or runtime store can replace the producer; the previous scope closes first. Server rendering reads only
initial, and never starts application effects.
interface
RefSubjectOptionsinterface
Overrides the first server/client snapshot, including for an uninitialized ref.
RefSubjectStoreinterface
A native writable whose transactional writes settle with typed Exit results.
SourceOptionsinterface
Used synchronously during SSR and the client’s first render.
variable
prefetchvariable
Resolves a request-local first snapshot and closes its subscription scope. Pass the result as
initialto both server rendering and client hydration. Empty sources yield NoData; failure causes become AsyncData failures.