-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Uncaught TypeError: Cannot read property 'update' of undefined #685
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
I've had this a couple of times, but it seems to be when there's a watched/referenced property that isn't originally specified in the data {} section. Adding the property usually cures it. |
This issue also repeats if you try to nullify some data property that was bind several times. For example, <div v-if='customer'>
<div v-show='customer'>{{customer.id}}</div>
<div v-show='customer'>{{customer.name}}</div>
</div> When you try to set |
Changing to |
The error points to the code
The problem occurs at the setting a big amount of data to a single property (
this.offer = offer
) in a complex component.Can't reproduce it in fiddle, but it looks like
subs
array changes its length while iterating it innotify
.Giving up on saving up
subs
length fixes the problem:The text was updated successfully, but these errors were encountered: