Component state property definition.

This is a parameter to @StateProperty decorator applied to component property.

Type Parameters

  • T extends object = any

Hierarchy

  • StatePropertyDef

Properties

Properties

updateState?: boolean | StatePath | StatePropertyUpdateReceiver<T>

Whether to update the component state after this property changed.

Can be one of:

  • false to not update the component state,
  • true (the default value) to update the component state with changed property key,
  • a state value key to update, or
  • an state property update receiver function with custom state update logic.

By default does not update component state if property value didn't change.

Generated using TypeDoc