Function cxScoped

  • Creates scoped context value definer.

    Here "scope" is a context available as an entry of itself. Thus context derived from that scope may access it via the same entry.

    Scoped context value is the one available only in particular scope only.

    The entry definer created by this function accesses the scope, and then requests the value from that scope. Thus the value would be the same regardless the context it is requested from.

    Type Parameters

    Parameters

    • scope: CxEntry<TContext, unknown>

      Context entry containing target scope as its value.

    • definer: Definer<TValue, TAsset>

      An entry definer that defines the entry in target scope.

    Returns Definer<TValue, TAsset>

    New scoped context entry definer.

Generated using TypeDoc