Skip to content

fix v-once inside v-for and v-once with v-if (fix #4182) #4200

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
Nov 14, 2016
Merged

fix v-once inside v-for and v-once with v-if (fix #4182) #4200

merged 1 commit into from
Nov 14, 2016

Conversation

defcc
Copy link
Member

@defcc defcc commented Nov 14, 2016

fix #4182

This PR also fix a bug when v-if works with v-once. The generated code is like _m(1), which is cached by the static tree. I created a jsfiddle here

@yyx990803 yyx990803 merged commit 7749793 into vuejs:dev Nov 14, 2016
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.

v-else and v-once on custom component inside v-for
2 participants