fix: Implicit underscore-prefixed observable properties in fast-element #6824
Labels
area:fast-element
Pertains to fast-element
status:needs-investigation
Needs additional investigation
Milestone
🐛 Bug Report
When creating an
@observable
property, an implicit property with the same name prefixed with underscore will be created.Moreover, if an explicit underscore-prefixed property is declared alongside a non-prefixed property, they will overwrite each other
💻 Repro or Code Sample
https://stackblitz.com/edit/typescript-j2eqbm?file=index.ts
🤔 Expected Behavior
The template should show
Just my prop
😯 Current Behavior
The template shows
My prop with underscore
💁 Possible Solution
If it's necessary to create these implicit properties, an error should be raised if a property with underscore is explicitly defined.
🔦 Context
🌍 Your Environment
The text was updated successfully, but these errors were encountered: