{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/vuex/issues/353","repository_url":"https://api.github.com/repos/vuejs/vuex","labels_url":"https://api.github.com/repos/vuejs/vuex/issues/353/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vuex/issues/353/comments","events_url":"https://api.github.com/repos/vuejs/vuex/issues/353/events","html_url":"https://github.com/vuejs/vuex/issues/353","id":180094941,"number":353,"title":"where should i regist my plugin","user":{"login":"Force-Wj","id":5511805,"avatar_url":"https://avatars.githubusercontent.com/u/5511805?v=3","gravatar_id":"","url":"https://api.github.com/users/Force-Wj","html_url":"https://github.com/Force-Wj","followers_url":"https://api.github.com/users/Force-Wj/followers","following_url":"https://api.github.com/users/Force-Wj/following{/other_user}","gists_url":"https://api.github.com/users/Force-Wj/gists{/gist_id}","starred_url":"https://api.github.com/users/Force-Wj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Force-Wj/subscriptions","organizations_url":"https://api.github.com/users/Force-Wj/orgs","repos_url":"https://api.github.com/users/Force-Wj/repos","events_url":"https://api.github.com/users/Force-Wj/events{/privacy}","received_events_url":"https://api.github.com/users/Force-Wj/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-29T16:14:27Z","updated_at":"2016-09-30T07:43:05Z","closed_at":"2016-09-29T16:45:19Z","body":"I find a problem in my work. Both my plugin and store need anthor Instance when  initializing\r\nlike this:\r\n var plugin = new Plugin({\r\n       store: store\r\n       callback:function(){\r\n          this.store.commit('someting')\r\n      }\r\n}})\r\nnew Vuex.Store({\r\n  actions  :{\r\n   do: function({ commit, state },data){\r\n    plugin.hander(data,()=>commit('XXX'))\r\n   }\r\n  }\r\n})\r\nI solve this problem with ugly method=.= .So\r\ncan vuex  provide a dynamic plug Registration and I  visit it  from action‘s arguments or please give an idea to solve this problem\r\nThanks"},"comment":{"url":"https://api.github.com/repos/vuejs/vuex/issues/comments/250680849","html_url":"https://github.com/vuejs/vuex/issues/353#issuecomment-250680849","issue_url":"https://api.github.com/repos/vuejs/vuex/issues/353","id":250680849,"user":{"login":"Force-Wj","id":5511805,"avatar_url":"https://avatars.githubusercontent.com/u/5511805?v=3","gravatar_id":"","url":"https://api.github.com/users/Force-Wj","html_url":"https://github.com/Force-Wj","followers_url":"https://api.github.com/users/Force-Wj/followers","following_url":"https://api.github.com/users/Force-Wj/following{/other_user}","gists_url":"https://api.github.com/users/Force-Wj/gists{/gist_id}","starred_url":"https://api.github.com/users/Force-Wj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Force-Wj/subscriptions","organizations_url":"https://api.github.com/users/Force-Wj/orgs","repos_url":"https://api.github.com/users/Force-Wj/repos","events_url":"https://api.github.com/users/Force-Wj/events{/privacy}","received_events_url":"https://api.github.com/users/Force-Wj/received_events","type":"User","site_admin":false},"created_at":"2016-09-30T07:43:05Z","updated_at":"2016-09-30T07:43:05Z","body":"@LinusBorg  i think this is a feature request.....  I can't find an elegant way to inject my plugin instance when i deal with action's callback"}}
{"actor":{"display_login":"Force-Wj"}}