{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/Discussion/issues/376","labels_url":"https://api.github.com/repos/vuejs/Discussion/issues/376/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/Discussion/issues/376/comments","events_url":"https://api.github.com/repos/vuejs/Discussion/issues/376/events","html_url":"https://github.com/vuejs/Discussion/issues/376","id":105069600,"number":376,"title":"Where can I read about how computed properties work?","user":{"login":"JosephSilber","id":1403741,"avatar_url":"https://avatars.githubusercontent.com/u/1403741?v=3","gravatar_id":"","url":"https://api.github.com/users/JosephSilber","html_url":"https://github.com/JosephSilber","followers_url":"https://api.github.com/users/JosephSilber/followers","following_url":"https://api.github.com/users/JosephSilber/following{/other_user}","gists_url":"https://api.github.com/users/JosephSilber/gists{/gist_id}","starred_url":"https://api.github.com/users/JosephSilber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JosephSilber/subscriptions","organizations_url":"https://api.github.com/users/JosephSilber/orgs","repos_url":"https://api.github.com/users/JosephSilber/repos","events_url":"https://api.github.com/users/JosephSilber/events{/privacy}","received_events_url":"https://api.github.com/users/JosephSilber/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-06T03:55:42Z","updated_at":"2015-09-06T16:49:18Z","closed_at":null,"body":"Specifically, how it calculates its dependencies:\r\n\r\n```js\r\ncomputed: {\r\n    foo() {\r\n        return this.bar ? this.baz : this.boom;\r\n    }\r\n}\r\n```\r\n\r\nIf at first `this.bar` is `true`, how does it know that `foo` depends on `boom`?\r\n\r\nDoes it re-collect its dependencies every time it runs?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/vuejs/Discussion/issues/comments/138099255","html_url":"https://github.com/vuejs/Discussion/issues/376#issuecomment-138099255","issue_url":"https://api.github.com/repos/vuejs/Discussion/issues/376","id":138099255,"user":{"login":"dannyfritz","id":315788,"avatar_url":"https://avatars.githubusercontent.com/u/315788?v=3","gravatar_id":"","url":"https://api.github.com/users/dannyfritz","html_url":"https://github.com/dannyfritz","followers_url":"https://api.github.com/users/dannyfritz/followers","following_url":"https://api.github.com/users/dannyfritz/following{/other_user}","gists_url":"https://api.github.com/users/dannyfritz/gists{/gist_id}","starred_url":"https://api.github.com/users/dannyfritz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dannyfritz/subscriptions","organizations_url":"https://api.github.com/users/dannyfritz/orgs","repos_url":"https://api.github.com/users/dannyfritz/repos","events_url":"https://api.github.com/users/dannyfritz/events{/privacy}","received_events_url":"https://api.github.com/users/dannyfritz/received_events","type":"User","site_admin":false},"created_at":"2015-09-06T16:49:18Z","updated_at":"2015-09-06T16:49:18Z","body":"This looks like the function that does it to me: https://github.com/yyx990803/vue/blob/3fc91b970a271fe59c3e741bea1b9c294c1ea3d6/src/instance/scope.js#L215"}}