Skip to content

Update Instance in Guide to mention Object.freeze #1323

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

Merged
merged 3 commits into from
Dec 19, 2017

Conversation

sdras
Copy link
Member

@sdras sdras commented Dec 14, 2017

This PR clarifies that Object.freeze keeps Vue's reactivity system from updating properties, as per #1319 and #978. Open to suggestions for placement in guide. Also, as per conversation in chat, adding in yarn.lock

@sdras sdras requested a review from chrisvfritz December 14, 2017 22:43
@sdras
Copy link
Member Author

sdras commented Dec 14, 2017

Apologies for the formatting changes, prettier has some opinions on those js code block spaces :)

new Vue({
data: {
a: 1
},
created: function () {
created: function() {
Copy link
Member

Choose a reason for hiding this comment

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

it'd be great to revert the stylistic changes just for consistency

@yyx990803
Copy link
Member

LGTM once we remove the two small stylistic changes 👍

@chrisvfritz chrisvfritz merged commit bcf97b4 into vuejs:master Dec 19, 2017
@sdras
Copy link
Member Author

sdras commented Dec 19, 2017

Wow, you're speedy Chris, I was just fixing that up. Thanks!

@chrisvfritz
Copy link
Contributor

I'm speedy in spurts. 😅 Today is a heavy open source day for me.

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.

3 participants