You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a simple registration page which loads some data from the server before I show the form. When the data is being loaded I get 2 warnings in the console:
[Vue warn]: You are setting a non-existent path "ok" on a vm instance. Consider pre-initializing the property with the "data" option for more reliable reactivity and better performance.
[Vue warn]: You are setting a non-existent path "data" on a vm instance. Consider pre-initializing the property with the "data" option for more reliable reactivity and better performance.
Why is it returning warning in the console if I did exactly as the documentation suggests to return a promise? Did I need to do something in another way?
EDIT:
It seems like what it does is running the $set method on the Promise object that is being returned which has the ok and data keys.
How can I not run it? All I really want to do is to fetch the tags, update the this.tags array and only then show the route. How can I achieve that?
_Note: I'm using vue-resource for my http requests._
The text was updated successfully, but these errors were encountered:
Hello.
I have a simple registration page which loads some data from the server before I show the form. When the data is being loaded I get 2 warnings in the console:
My hook and method:
Why is it returning warning in the console if I did exactly as the documentation suggests to return a promise? Did I need to do something in another way?
EDIT:
It seems like what it does is running the
$set
method on the Promise object that is being returned which has theok
anddata
keys.How can I not run it? All I really want to do is to fetch the tags, update the
this.tags
array and only then show the route. How can I achieve that?_Note: I'm using
vue-resource
for my http requests._The text was updated successfully, but these errors were encountered: