Function computed

Create a derived signal from existing signals

0.9.0

  • Type Parameters

    • T extends {}
    • U extends Signal<{}>[]

    Parameters

    • cb: ComputedCallbacks<T, U>

      compute callback or object of ok, nil, err callbacks to derive state

    • ...maybeSignals: U

      signals of functions using signals this values depends on

    Returns Computed<T>

    • Computed signal