{"action":"closed","issue":{"url":"https://api.github.com/repos/vuejs/vue/issues/5237","repository_url":"https://api.github.com/repos/vuejs/vue","labels_url":"https://api.github.com/repos/vuejs/vue/issues/5237/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue/issues/5237/comments","events_url":"https://api.github.com/repos/vuejs/vue/issues/5237/events","html_url":"https://github.com/vuejs/vue/issues/5237","id":215521791,"number":5237,"title":"Allow `this` during method calls in computed properties, i. e. mapGetters","user":{"login":"dominik-bln","id":855119,"avatar_url":"https://avatars3.githubusercontent.com/u/855119?v=3","gravatar_id":"","url":"https://api.github.com/users/dominik-bln","html_url":"https://github.com/dominik-bln","followers_url":"https://api.github.com/users/dominik-bln/followers","following_url":"https://api.github.com/users/dominik-bln/following{/other_user}","gists_url":"https://api.github.com/users/dominik-bln/gists{/gist_id}","starred_url":"https://api.github.com/users/dominik-bln/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominik-bln/subscriptions","organizations_url":"https://api.github.com/users/dominik-bln/orgs","repos_url":"https://api.github.com/users/dominik-bln/repos","events_url":"https://api.github.com/users/dominik-bln/events{/privacy}","received_events_url":"https://api.github.com/users/dominik-bln/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-03-20T18:57:11Z","updated_at":"2017-03-20T20:40:08Z","closed_at":"2017-03-20T20:40:08Z","body":"### What problem does this feature solve?\r\nWhen using mapGetters from vuex it would be nice to be able to provide the store namespace from a prop.\r\n\r\nThe use case for us is, that we have several store modules whose interfaces basically look the same. If we could provide the store namespace as a prop we could rely on that interface from a specific component without having to duplicate the mapGetters calls in all parent components that use the component.\r\n\r\n### What does the proposed API look like?\r\n```\r\ncomputed: {\r\n    ...mapGetters(this.storeNamespace, {'item': 'myGetter' })\r\n}\r\n```\r\n\r\nSee the following Codepen for a full example:\r\n\r\nhttps://codepen.io/dmnk_bln/pen/yMvpLq/\r\n\r\n<!-- generated by vue-issues. DO NOT REMOVE -->"}}
{"actor":{"display_login":"posva"}}