{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/vue/issues/2084","labels_url":"https://api.github.com/repos/vuejs/vue/issues/2084/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue/issues/2084/comments","events_url":"https://api.github.com/repos/vuejs/vue/issues/2084/events","html_url":"https://github.com/vuejs/vue/issues/2084","id":123871600,"number":2084,"title":"Warning when using vm.$set() to set a non-existent path","user":{"login":"fenivana","id":11750532,"avatar_url":"https://avatars.githubusercontent.com/u/11750532?v=3","gravatar_id":"","url":"https://api.github.com/users/fenivana","html_url":"https://github.com/fenivana","followers_url":"https://api.github.com/users/fenivana/followers","following_url":"https://api.github.com/users/fenivana/following{/other_user}","gists_url":"https://api.github.com/users/fenivana/gists{/gist_id}","starred_url":"https://api.github.com/users/fenivana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fenivana/subscriptions","organizations_url":"https://api.github.com/users/fenivana/orgs","repos_url":"https://api.github.com/users/fenivana/repos","events_url":"https://api.github.com/users/fenivana/events{/privacy}","received_events_url":"https://api.github.com/users/fenivana/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-12-25T10:21:17Z","updated_at":"2015-12-28T09:14:50Z","closed_at":"2015-12-25T19:01:18Z","body":"Sorry for haven't describe it clearly.\r\n\r\nWhen setting a non-existent path using `vm.$set()', Vue arises a warning like \"[Vue warn]: You are setting a non-existent path \"foo\" on a vm instance. Consider pre-initializing the property with the \"data\" option for more reliable reactivity and better performance.\"\r\n\r\nThe warning is needless, I know what I'm doing. And why I don't put the property into the data block, because I'm researching a way to plug and play some functions and data into a running vm on the fly. The scenario is:\r\nThe page first loads a core bootstrap component with minimal functions, and the bootstrap loads the view using `<component :is=\"viewName\">`. And there are some additional functions and data of bootstrap component bundled as separate files will not load at this moment.\r\nWhen a view requires optional functions and data of bootstrap, I then load that file and set the bootstrap vm methods and data on the fly.\r\n\r\nCurrently I haven't figure out how to dynamically set vm methods and computed properties."},"comment":{"url":"https://api.github.com/repos/vuejs/vue/issues/comments/167519062","html_url":"https://github.com/vuejs/vue/issues/2084#issuecomment-167519062","issue_url":"https://api.github.com/repos/vuejs/vue/issues/2084","id":167519062,"user":{"login":"fenivana","id":11750532,"avatar_url":"https://avatars.githubusercontent.com/u/11750532?v=3","gravatar_id":"","url":"https://api.github.com/users/fenivana","html_url":"https://github.com/fenivana","followers_url":"https://api.github.com/users/fenivana/followers","following_url":"https://api.github.com/users/fenivana/following{/other_user}","gists_url":"https://api.github.com/users/fenivana/gists{/gist_id}","starred_url":"https://api.github.com/users/fenivana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fenivana/subscriptions","organizations_url":"https://api.github.com/users/fenivana/orgs","repos_url":"https://api.github.com/users/fenivana/repos","events_url":"https://api.github.com/users/fenivana/events{/privacy}","received_events_url":"https://api.github.com/users/fenivana/received_events","type":"User","site_admin":false},"created_at":"2015-12-28T09:14:50Z","updated_at":"2015-12-28T09:14:50Z","body":"@smolinari Here I said \"bootstrap\" means a boot loader, the entry point of app.js, rather than the bootstrap css framework."}}