Module / v1.0.0-beta.13

@typed/svelte/Reactive

8 unique exports available through this public import path, including their members and aliases.

import * as Reactive from "@typed/svelte/Reactive";

function

  • useAsyncData

    function

    Observes an existing AsyncData producer without nesting its state model.

  • useRefSubject

    function

    Observes any RefSubject, including hydrated refs with typed failures. Writes use its serialized transactions; failures also reach state when a native binding ignores the returned Exit. Unmount/runtime replacement cancels writes. The first subscription receives the optional initial value or undefined. Lazy initializers only start after mount; initial can seed matching SSR and hydration values without executing application effects during rendering.

  • useService

    function

    Reads any Effect service using the same runtime, SSR, and failure contract.

  • useSource

    function

    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

  • RefSubjectOptions

    interface

    Overrides the first server/client snapshot, including for an uninitialized ref.

  • RefSubjectStore

    interface

    A native writable whose transactional writes settle with typed Exit results.

  • SourceOptions

    interface

    Used synchronously during SSR and the client’s first render.

variable

  • prefetch

    variable

    Resolves a request-local first snapshot and closes its subscription scope. Pass the result as initial to both server rendering and client hydration. Empty sources yield NoData; failure causes become AsyncData failures.