-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
How much should I worry about [Vue Warn]
ings?
#1153
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
Comments
You are indeed causing an infinite loop, because return values.slice().sort(...) |
Perfect. Thanks, Evan! |
perfect,Even!!! |
I just lost a few hours by a similar in place array mutation. In my case I used the I used the following code in a template that produced the same infinite loop warning: <div v-for="tel in telephoneNumbers.reverse()">
{{tel}}
</div> Lesson learned: Prepare / mutate data before adding it to the local component state. |
I have a pretty simple sort going on but I'm getting this error:
Any advice? Am I doing anything funky? Here's the code that's throwing it.
along with a demo: http://jsbin.com/ximoqumazi/1/edit?js,output
The text was updated successfully, but these errors were encountered: