CustomWithFallback<T>: ((this: void, consumer: ComponentContext, spec: FullSpec<T>) => AfterEvent<[] | [T, ComponentContext]>)

Type Parameters

  • T

    Shared value type.

Type declaration

    • (this: void, consumer: ComponentContext, spec: FullSpec<T>): AfterEvent<[] | [T, ComponentContext]>
    • Signature of custom shared value locator that expects a fallback share reference to be specified.

      Returns

      An AfterEvent keeper of the shared value and its sharer context, if found.

      Parameters

      • this: void
      • consumer: ComponentContext

        Consumer component context.

      • spec: FullSpec<T>

      Returns AfterEvent<[] | [T, ComponentContext]>

Generated using TypeDoc