Interface that Lime Web Components must implement

Hierarchy

Properties

The context this component belongs to

Reference to the platform

Methods

  • The component has loaded and has already rendered.

    Updating data in this method will cause the component to re-render.

    componentDidLoad will only be called once.

    Returns void

  • Returns void

  • The component has just re-rendered.

    Called multiple times throughout the life of the component as it updates.

    componentWillUpdate is not called on the first render.

    Returns void

  • A @Prop or @State property changed and a rerender is about to be requested.

    Called multiple times throughout the life of the component as its properties change.

    componentShouldUpdate is not called on the first render.

    Parameters

    • newVal: any
    • oldVal: any
    • propName: string

    Returns boolean | void

  • The component is about to load and it has not rendered yet.

    This is the best place to make any data updates before the first render.

    componentWillLoad will only be called once.

    Returns void | Promise<void>

  • Returns void | Promise<void>

  • The component is about to update and re-render.

    Called multiple times throughout the life of the component as it updates.

    componentWillUpdate is not called on the first render.

    Returns void | Promise<void>

  • Returns void

  • Returns void

  • Returns any