Skip to content

Add a note about frozen objects and v-for #297

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 1 commit into from
May 7, 2016
Merged

Add a note about frozen objects and v-for #297

merged 1 commit into from
May 7, 2016

Conversation

sirlancelot
Copy link
Contributor

Part of vuejs/vue#2809

@@ -223,6 +223,10 @@ You can just do:
this.items.$remove(item)
```

#### `Object.freeze()`

When iterating over an array of objects frozen with `Object.freeze()`, you need to explicitly use a `track-by` key. A warning will be displayed in this scenario when Vue.js is unable to track objects automatically
Copy link
Member

Choose a reason for hiding this comment

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

period at the end please? ;)

@sirlancelot
Copy link
Contributor Author

Fixed ;)

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.

2 participants