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
This probably would only work with standard decorators, but there are a couple changes we'll need to make it possible.
Currently, requestUpdate depends on being able to lookup the current property value via this[propertyKey] and that isn't possible with a private field.
It's probably not worth trying to take any action on this until Lit no longer needs to support TypeScript experimental decorators or the legacy JS static properties object. Neither of these can use private identifiers.
Should this be an RFC?
Which package is this a feature request for?
Lit Core (lit / lit-html / lit-element / reactive-element)
Description
This doesn't work today:
This probably would only work with standard decorators, but there are a couple changes we'll need to make it possible.
Currently,
requestUpdate
depends on being able to lookup the current property value viathis[propertyKey]
and that isn't possible with a private field.Alternatives and Workarounds
You can write a manual getter/setter today.
The text was updated successfully, but these errors were encountered: