Skip to content

What is the alternative for createProperty? #4434

Answered by augustjk
MarkoZabcic asked this question in Q&A
Discussion options

You must be logged in to vote

That's an excellent question. Pinging @justinfagnani and @rictic to see if they might have thoughts.

Currently using the static properties block or experimental TypeScript decorators will still call createProperty. This deprecation is in preparation for removing the static properties block and moving completely over to standard decorators when the feature has been available in all major browsers which will be way way in the future (likely years).

I think the alternative to overriding createProperty for use with standard decorators would have to be creating your own version of the @property() decorator. It could wrap the existing one here

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MarkoZabcic
Comment options

Answer selected by MarkoZabcic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants