Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support native properties for Component classes #30

Open
fritzy opened this issue Sep 29, 2020 · 0 comments
Open

Support native properties for Component classes #30

fritzy opened this issue Sep 29, 2020 · 0 comments

Comments

@fritzy
Copy link
Owner

fritzy commented Sep 29, 2020

If you're writing a Component in TS, you essentially have to define each property twice.

Internally, ES class properties use Object.defineProperty every time the class is initialized, which is slow. This is why this was avoided in the first place.

If no static properties object has been defined, we can check for class properties at registration and build it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant