You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Works great, but I have found that the when it is used on a method in a base class of inherited custom element, it doesn't work. I have specifically used it to observe @deepComputed property, but the issue may affect other scenarios, too:
@customElement('child-element')
export class Child extends Parent<XYZ> {
@bindable childProperty;
}
export abstract class Parent<TModel> {
@bindable parentProperty : TModel;
@deepComputedFrom('parentProperty')
get computedParent() {
return JSON.stringify(this.parentProperty);
}
@watch('computedParent') // either of these doesn't work here
@watch(x: Parent => x.computedParent)
computedParentChanged() {
// this will never get executed
}
}
When the method with @watch decorator is moved over to Child class, it works.
The text was updated successfully, but these errors were encountered:
Works great, but I have found that the when it is used on a method in a base class of inherited custom element, it doesn't work. I have specifically used it to observe
@deepComputed
property, but the issue may affect other scenarios, too:When the method with
@watch
decorator is moved over to Child class, it works.The text was updated successfully, but these errors were encountered: