onPropertyChange

onPropertyChange(property: string, value: any): void

onPropertyChange(e){
  const propertyName = e.detail.property
  const propertyValue = e.detail.value
}

Called whenever a property value has changed in Squirrel, state is automatically updated to reflect the new value and this callback is designed to allow you to process that change if needed. The full dot notation name of the property is provided as well as the new, incoming, value.

If you super the base class onPropertyChange method then it will add debug logs to your output

Last updated

Was this helpful?