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

Remove volatile computed properties #207

Merged
merged 1 commit into from
Mar 7, 2019

Conversation

bendemboski
Copy link
Contributor

Volatile computed properties are deprecated (https://deprecations-app-prod.herokuapp.com/deprecations/v3.x/#toc_computed-property-volatile). These were only used internally, so they can safely be converted to methods.

These could also be implemented using Object.defineProperty to define ES5 getters, and I'm happy to do that if preferred, but I don't see what that extra code complexity buys us over just making them methods.

Volatile computed properties are deprecated (https://deprecations-app-prod.herokuapp.com/deprecations/v3.x/#toc_computed-property-volatile). These were only used internally, so they can safely be converted to methods.
Copy link
Member

@marcoow marcoow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we not use getters instead?

@marcoow
Copy link
Member

marcoow commented Mar 7, 2019

Ugh, sorry - should have read the description properly 🤦‍♂️

@marcoow marcoow merged commit fc8d683 into mainmatter:master Mar 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants