From 8a63ed56f5fe1475dcfbfe7a3cb2117b36a9b407 Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Sat, 22 Mar 2025 11:20:32 +0100 Subject: [PATCH] feat: remove support for `static properties` - focus usage on static props Blueprint for Proxy --- src/WebComponent.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/WebComponent.js b/src/WebComponent.js index fafaf83..6efba52 100644 --- a/src/WebComponent.js +++ b/src/WebComponent.js @@ -21,12 +21,6 @@ export class WebComponent extends HTMLElement { #props #typeMap = {} - /** - * Array of strings that tells the browsers which attributes will cause a render - * @type {Array} - */ - static properties = [] - /** * Blueprint for the Proxy props * @typedef {{[name: string]: any}} PropStringMap @@ -96,7 +90,7 @@ export class WebComponent extends HTMLElement { ? Object.keys(this.props).map((camelCase) => getKebabCase(camelCase)) : [] - return [...new Set([...this.properties, ...propKeys])] + return propKeys } connectedCallback() {