{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/vuex/issues/37","repository_url":"https://api.github.com/repos/vuejs/vuex","labels_url":"https://api.github.com/repos/vuejs/vuex/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vuex/issues/37/comments","events_url":"https://api.github.com/repos/vuejs/vuex/issues/37/events","html_url":"https://github.com/vuejs/vuex/issues/37","id":126174091,"number":37,"title":"Watching for state changes","user":{"login":"sgenoud","id":263325,"avatar_url":"https://avatars.githubusercontent.com/u/263325?v=3","gravatar_id":"","url":"https://api.github.com/users/sgenoud","html_url":"https://github.com/sgenoud","followers_url":"https://api.github.com/users/sgenoud/followers","following_url":"https://api.github.com/users/sgenoud/following{/other_user}","gists_url":"https://api.github.com/users/sgenoud/gists{/gist_id}","starred_url":"https://api.github.com/users/sgenoud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgenoud/subscriptions","organizations_url":"https://api.github.com/users/sgenoud/orgs","repos_url":"https://api.github.com/users/sgenoud/repos","events_url":"https://api.github.com/users/sgenoud/events{/privacy}","received_events_url":"https://api.github.com/users/sgenoud/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-01-12T12:57:42Z","updated_at":"2016-02-04T09:34:25Z","closed_at":null,"body":"I was trying to watch for the change of the store, I relied on the very hacky `store._vm.$watch`. Does it make sense to use this? \r\n\r\nIf there is no better way to do it, would you accept a PR what exposes $watch in the public API?"},"comment":{"url":"https://api.github.com/repos/vuejs/vuex/issues/comments/179731783","html_url":"https://github.com/vuejs/vuex/issues/37#issuecomment-179731783","issue_url":"https://api.github.com/repos/vuejs/vuex/issues/37","id":179731783,"user":{"login":"barnabas-szekeres","id":1658432,"avatar_url":"https://avatars.githubusercontent.com/u/1658432?v=3","gravatar_id":"","url":"https://api.github.com/users/barnabas-szekeres","html_url":"https://github.com/barnabas-szekeres","followers_url":"https://api.github.com/users/barnabas-szekeres/followers","following_url":"https://api.github.com/users/barnabas-szekeres/following{/other_user}","gists_url":"https://api.github.com/users/barnabas-szekeres/gists{/gist_id}","starred_url":"https://api.github.com/users/barnabas-szekeres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barnabas-szekeres/subscriptions","organizations_url":"https://api.github.com/users/barnabas-szekeres/orgs","repos_url":"https://api.github.com/users/barnabas-szekeres/repos","events_url":"https://api.github.com/users/barnabas-szekeres/events{/privacy}","received_events_url":"https://api.github.com/users/barnabas-szekeres/received_events","type":"User","site_admin":false},"created_at":"2016-02-04T09:34:25Z","updated_at":"2016-02-04T09:34:25Z","body":"An another use case: \r\n\r\nI want to store realtime the states in webstorage. Currently I use a watcher in the component and when the page reloading I check the sessionstorage and if it's exist then I load that. I think is not good approach.\r\n\r\nCheck this:\r\nhttps://gist.github.com/barnabas-szekeres/391be5ca90fc145019c6"}}