Module / v1.0.0-beta.13

@typed/react/Runtime

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

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

class

  • RuntimeProviderError

    class

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

function

  • Provider

    function

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

  • fromContext

    function

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

  • serviceContext

    function

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

  • 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.

interface

  • ProviderProps

    interface

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

type-alias

  • 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/Runtime.