Skip to content

Commit

Permalink
chore: improve shadow prop message
Browse files Browse the repository at this point in the history
  • Loading branch information
pskelin committed May 14, 2024
1 parent cf54f4a commit 589a275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/base/src/UI5Element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ abstract class UI5Element extends HTMLElement {
for (const [prop, propData] of Object.entries(props)) { // eslint-disable-line
if (Object.hasOwn(this, prop)) {
// eslint-disable-next-line no-console
console.error("hasOwn", this, prop);
console.error(`[UI5-FWK] ${(this.constructor as typeof UI5Element).getMetadata().getTag()} has a property [${prop}] that is shadowed by the instance. Updates to this property will not invalidate the component. Possible reason is TS target ES2022 or TS useDefineForClassFields`);
}
}
}
Expand Down

0 comments on commit 589a275

Please sign in to comment.