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

    Interface ContextProviderHandleAlpha

    Handle returned by ContextRegistry.provide for the lifetime of a provider registration.

    interface ContextProviderHandle {
        notify(): void;
        teardown(): void;
    }
    Index

    Methods

    • Alpha

      Signal that the provided value has changed. Triggers re-evaluation in active subscribers whose resolved value could have changed.

      Reactive providers call notify whenever their underlying value changes. Non-reactive providers ignore notify and only call teardown on disconnect.

      Returns void

    • Alpha

      Detach the provider from its host. Call from disconnectedCallback (or equivalent) so the registry stops walking through it.

      Returns void