Module / v1.0.0-beta.13

@typed/react

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

import * as react from "@typed/react";

class

  • ReactRenderError

    class · Re-export

    An exception reported by React’s renderer. Producer errors retain their own E channel.

  • RuntimeProviderError

    class

    A provider acquisition failure passed to React error boundaries when no onError handler is supplied.

  • TypedRenderError

    class · Re-export

    A Typed producer failure surfaced through React’s server error callback or client Error Boundary.

function

  • AsyncData

    function

    Keeps the current value visible during refresh and supplies status to render functions.

  • CurrentRouteProvider

    function

    Extends the structural mount tree for React and Typed descendants; pass the complete mount route.

  • Provider

    function

    Provides Effect services to all React descendants, including nested Typed rendering.

  • asyncDataView

    function

    Derives values without losing Typed AsyncData causes or optimistic/refreshing states.

  • fromContext

    function

    Borrows already-built services. It acquires no resources and never closes the owner’s Scope.

  • prefetch

    function

    Captures the first value for SSR/hydration and closes the temporary subscription before returning.

  • routeComponent

    function

    Adapts a React component to a Typed matcher handler, preserving reactive params and route-local services.

  • serviceContext

    function

    A typed React Provider/hook pair for any Effect service key.

  • useAction

    function

    Event-driven Effects with refresh status, typed failures, cancellation and unmount cleanup.

  • useAsyncData

    function

    Flattens an Fx of AsyncData, preserving both its state and any source/runtime failures.

  • useCurrentPath

    function

    Tracks the canonical pathname and query string used by Typed matchers.

  • useCurrentRoute

    function

    The stable structural mount tree; useLocation observes the changing destination separately.

  • useEffect

    function

    Observes an Effect after commit. Memoize source expressions whose identity should survive rerenders.

  • useFx

    function

    Observes a Typed Fx. Unmount, source changes and runtime changes interrupt the previous subscription.

  • useLocation

    function

    Tracks the same currentEntry source used by Typed matchers and links.

  • useNavigation

    function

    Shares the exact Typed Navigation service. Execute its commands with useAction or useRuntime.

  • useRefSubject

    function

    Observes existing Typed state and exposes transactional writes with typed Exit results.

  • useRoute

    function

    Decoded parameters through Typed’s matcher. The default None fallback stays live outside the ambient mount.

  • useRuntime

    function

    Resolves an explicit runtime before the closest Provider. Ambient requirements are checked at runtime.

  • useService

    function

    Reads an already-prepared service without executing an Effect during React render.

  • useStream

    function

    Observes an Effect Stream, retaining its latest successful emission and complete failure cause.

  • view

    function · Re-export

    Render an existing React node through the same scoped DOM/HTML interpreter.

interface

  • ActionState

    interface

    Latest invocation wins; starting another command interrupts the previous one. All calls settle with Exit.

  • AsyncDataProps

    interface

    Public interface exposed as AsyncDataProps from @typed/react.

  • AsyncDataView

    interface

    A framework-independent snapshot; the hook provides refresh and cancellation separately.

  • AsyncState

    interface

    Re-runs the current source, retaining the last value while refreshing.

  • ProviderProps

    interface

    Already-built services merged over the parent or explicit runtime. Safe for SSR.

  • ReactiveOptions

    interface

    Defer the first execution until refresh.

  • RefSubjectState

    interface

    Public interface exposed as RefSubjectState from @typed/react.

  • RouteOptions

    interface

    Replaces the ambient mount. Outside this root, Typed reports RouteNotFound.

  • TypedProps

    interface · Re-export

    Stable host identity; React useId supplies the default for SSR and hydration.

  • ViewOptions

    interface · Re-export

    Optional host identity override. Generated per render and restored during hydration by default.

type-alias

  • PropsSource

    type-alias · Re-export

    A props object, or a producer of complete props objects. Use Fx.struct for reactive fields.

  • Runtime

    type-alias

    Execution capabilities shared by a ManagedRuntime and a borrowed Effect Context.

variable

  • RuntimeProvider

    variable

    Public variable exposed as RuntimeProvider from @typed/react.

  • Typed

    variable · Re-export

    Public variable exposed as Typed from @typed/react.