{"action":"opened","issue":{"url":"https://api.github.com/repos/robinvdvleuten/vuex-persistedstate/issues/228","repository_url":"https://api.github.com/repos/robinvdvleuten/vuex-persistedstate","labels_url":"https://api.github.com/repos/robinvdvleuten/vuex-persistedstate/issues/228/labels{/name}","comments_url":"https://api.github.com/repos/robinvdvleuten/vuex-persistedstate/issues/228/comments","events_url":"https://api.github.com/repos/robinvdvleuten/vuex-persistedstate/issues/228/events","html_url":"https://github.com/robinvdvleuten/vuex-persistedstate/issues/228","id":518104672,"node_id":"MDU6SXNzdWU1MTgxMDQ2NzI=","number":228,"title":"How to save only one value from state ?","user":{"login":"golubvladimir","id":43475142,"node_id":"MDQ6VXNlcjQzNDc1MTQy","avatar_url":"https://avatars3.githubusercontent.com/u/43475142?v=4","gravatar_id":"","url":"https://api.github.com/users/golubvladimir","html_url":"https://github.com/golubvladimir","followers_url":"https://api.github.com/users/golubvladimir/followers","following_url":"https://api.github.com/users/golubvladimir/following{/other_user}","gists_url":"https://api.github.com/users/golubvladimir/gists{/gist_id}","starred_url":"https://api.github.com/users/golubvladimir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/golubvladimir/subscriptions","organizations_url":"https://api.github.com/users/golubvladimir/orgs","repos_url":"https://api.github.com/users/golubvladimir/repos","events_url":"https://api.github.com/users/golubvladimir/events{/privacy}","received_events_url":"https://api.github.com/users/golubvladimir/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-11-05T22:54:08Z","updated_at":"2019-11-05T22:54:08Z","closed_at":null,"author_association":"NONE","body":"How to save only one value from state (lang) ?\r\n\r\nstate\r\n```\r\nexport const state = () => ({\r\n  lang: 'ru',\r\n  posts: []\r\n})\r\n```\r\n\r\n```\r\nexport default ({store}) => createPersistedState({\r\n  filter: (mutation) => mutation.type === 'changeLang',\r\n  reducer: (state) => state.lang,\r\n})(store)\r\n``` \r\nThis does not work."}}
{"actor":{"display_login":"golubvladimir"}}