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

feat(shallowReadonly): add shallowReadonly and set computed to be shallowReadonly #447

Merged

Conversation

pikax
Copy link
Member

@pikax pikax commented Jul 20, 2020

Adding shallowReadonly and setting the computed to behave as shallowReadonly.

This will allow to check if we are allowed to set the value on the computed.
fix #445

This behaviour has not been approved nor in vue-next.

vuejs/core#1654 vue next PR

@pikax pikax marked this pull request as ready for review July 21, 2020 04:24
@pikax pikax requested a review from antfu July 21, 2020 04:24
Copy link
Member

@antfu antfu left a comment

Choose a reason for hiding this comment

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

LGTM, can you help updating the missing api list in the readme as well? Thanks

@antfu
Copy link
Member

antfu commented Jul 21, 2020

Done. I will publish a new version after Vue RC3 :)

@pikax pikax merged commit cfbbcec into vuejs:master Jul 22, 2020
@pikax pikax deleted the feat/treat_computed_with_no_setter_as_shallowReadonly branch July 22, 2020 08:24
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

Successfully merging this pull request may close these issues.

help/Feature request: iscomputed
2 participants