{"action":"closed","issue":{"url":"https://api.github.com/repos/oss-wec/wisdm/issues/7","repository_url":"https://api.github.com/repos/oss-wec/wisdm","labels_url":"https://api.github.com/repos/oss-wec/wisdm/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/oss-wec/wisdm/issues/7/comments","events_url":"https://api.github.com/repos/oss-wec/wisdm/issues/7/events","html_url":"https://github.com/oss-wec/wisdm/issues/7","id":250472920,"number":7,"title":"Communicating with vuex from form","user":{"login":"kissmygritts","id":8335176,"avatar_url":"https://avatars0.githubusercontent.com/u/8335176?v=4","gravatar_id":"","url":"https://api.github.com/users/kissmygritts","html_url":"https://github.com/kissmygritts","followers_url":"https://api.github.com/users/kissmygritts/followers","following_url":"https://api.github.com/users/kissmygritts/following{/other_user}","gists_url":"https://api.github.com/users/kissmygritts/gists{/gist_id}","starred_url":"https://api.github.com/users/kissmygritts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kissmygritts/subscriptions","organizations_url":"https://api.github.com/users/kissmygritts/orgs","repos_url":"https://api.github.com/users/kissmygritts/repos","events_url":"https://api.github.com/users/kissmygritts/events{/privacy}","received_events_url":"https://api.github.com/users/kissmygritts/received_events","type":"User","site_admin":false},"labels":[{"id":668708244,"url":"https://api.github.com/repos/oss-wec/wisdm/labels/in%20progress","name":"in progress","color":"ededed","default":false},{"id":667655660,"url":"https://api.github.com/repos/oss-wec/wisdm/labels/TODO","name":"TODO","color":"5319e7","default":false}],"state":"closed","locked":false,"assignee":{"login":"kissmygritts","id":8335176,"avatar_url":"https://avatars0.githubusercontent.com/u/8335176?v=4","gravatar_id":"","url":"https://api.github.com/users/kissmygritts","html_url":"https://github.com/kissmygritts","followers_url":"https://api.github.com/users/kissmygritts/followers","following_url":"https://api.github.com/users/kissmygritts/following{/other_user}","gists_url":"https://api.github.com/users/kissmygritts/gists{/gist_id}","starred_url":"https://api.github.com/users/kissmygritts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kissmygritts/subscriptions","organizations_url":"https://api.github.com/users/kissmygritts/orgs","repos_url":"https://api.github.com/users/kissmygritts/repos","events_url":"https://api.github.com/users/kissmygritts/events{/privacy}","received_events_url":"https://api.github.com/users/kissmygritts/received_events","type":"User","site_admin":false},"assignees":[{"login":"kissmygritts","id":8335176,"avatar_url":"https://avatars0.githubusercontent.com/u/8335176?v=4","gravatar_id":"","url":"https://api.github.com/users/kissmygritts","html_url":"https://github.com/kissmygritts","followers_url":"https://api.github.com/users/kissmygritts/followers","following_url":"https://api.github.com/users/kissmygritts/following{/other_user}","gists_url":"https://api.github.com/users/kissmygritts/gists{/gist_id}","starred_url":"https://api.github.com/users/kissmygritts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kissmygritts/subscriptions","organizations_url":"https://api.github.com/users/kissmygritts/orgs","repos_url":"https://api.github.com/users/kissmygritts/repos","events_url":"https://api.github.com/users/kissmygritts/events{/privacy}","received_events_url":"https://api.github.com/users/kissmygritts/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/oss-wec/wisdm/milestones/1","html_url":"https://github.com/oss-wec/wisdm/milestone/1","labels_url":"https://api.github.com/repos/oss-wec/wisdm/milestones/1/labels","id":2698174,"number":1,"title":"0.2.0","description":"New animal/encounter data entry is live.","creator":{"login":"kissmygritts","id":8335176,"avatar_url":"https://avatars0.githubusercontent.com/u/8335176?v=4","gravatar_id":"","url":"https://api.github.com/users/kissmygritts","html_url":"https://github.com/kissmygritts","followers_url":"https://api.github.com/users/kissmygritts/followers","following_url":"https://api.github.com/users/kissmygritts/following{/other_user}","gists_url":"https://api.github.com/users/kissmygritts/gists{/gist_id}","starred_url":"https://api.github.com/users/kissmygritts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kissmygritts/subscriptions","organizations_url":"https://api.github.com/users/kissmygritts/orgs","repos_url":"https://api.github.com/users/kissmygritts/repos","events_url":"https://api.github.com/users/kissmygritts/events{/privacy}","received_events_url":"https://api.github.com/users/kissmygritts/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":3,"state":"open","created_at":"2017-08-13T06:52:00Z","updated_at":"2017-08-16T23:18:09Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2017-08-16T00:11:02Z","updated_at":"2017-08-16T23:18:09Z","closed_at":"2017-08-16T23:18:09Z","body":"https://vuex.vuejs.org/en/forms.html recommends using two way computed property between the component and vuex. \r\n\r\n``` javascript\r\ncomputed: {\r\n  message: {\r\n    get () {\r\n      return this.$store.state.obj.message\r\n    },\r\n    set (value) {\r\n      this.$store.commit('updateMessage', value)\r\n    }\r\n  }\r\n```\r\n\r\nHowever this will require writing one for each field. This doesn't sound appealing. \r\n\r\nNot to mention, how can I do this with an dynamic form elements and arrays?"}}
{"actor":{"display_login":"kissmygritts"}}