Repository navigation
Commit 412f7e1
refactor: drop the Polymer workaround from createComponent (#13056)
## Description
Related to #13048
`createComponent` checked for a static `_properties` on the element
class and, when present, handed `@lit/react` a mock class with the
Polymer property map on its prototype. Every component in this monorepo
is a Lit element, and no class under `packages/*/src` defines
`_properties` anymore, so the branch was dead code carried over from
vaadin/react-components.
- Removed the `_properties` branch, the `PolymerConstructor` type and
the `@ts-expect-error` from
`packages/react-components/src/utils/createComponent.ts`
- `elementClass` is typed as a plain constructor
## Type of change
- Refactor
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>1 parent d93bed3 commit 412f7e1
1 file changed
Lines changed: 2 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | 39 | | |
41 | 40 | | |
42 | | - | |
| 41 | + | |
43 | 42 | | |
44 | 43 | | |
45 | 44 | | |
| |||
105 | 104 | | |
106 | 105 | | |
107 | 106 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
| 107 | + | |
127 | 108 | | |
128 | 109 | | |
129 | 110 | | |
| |||
0 commit comments