Lime Web Components API Documentation - v6.24.0
    Preparing search index...

    Function SelectContext

    • Alpha

      Decorator that consumes a ContextMap key, assigning the resolved value to the decorated property and updating it on every change. Compose with Stencil's @State() to trigger a re-render.

      Type Parameters

      Parameters

      Returns PropertyDecorator

      A PropertyDecorator that wires up the subscription.

      @State()
      @SelectContext('user')
      private user: User;