{"action":"opened","issue":{"url":"https://api.github.com/repos/vuejs/vuex/issues/1196","repository_url":"https://api.github.com/repos/vuejs/vuex","labels_url":"https://api.github.com/repos/vuejs/vuex/issues/1196/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vuex/issues/1196/comments","events_url":"https://api.github.com/repos/vuejs/vuex/issues/1196/events","html_url":"https://github.com/vuejs/vuex/issues/1196","id":306712501,"number":1196,"title":"Find problem when changing state using Object.assign()","user":{"login":"fxxjdedd","id":13739947,"avatar_url":"https://avatars0.githubusercontent.com/u/13739947?v=4","gravatar_id":"","url":"https://api.github.com/users/fxxjdedd","html_url":"https://github.com/fxxjdedd","followers_url":"https://api.github.com/users/fxxjdedd/followers","following_url":"https://api.github.com/users/fxxjdedd/following{/other_user}","gists_url":"https://api.github.com/users/fxxjdedd/gists{/gist_id}","starred_url":"https://api.github.com/users/fxxjdedd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxxjdedd/subscriptions","organizations_url":"https://api.github.com/users/fxxjdedd/orgs","repos_url":"https://api.github.com/users/fxxjdedd/repos","events_url":"https://api.github.com/users/fxxjdedd/events{/privacy}","received_events_url":"https://api.github.com/users/fxxjdedd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-20T03:06:25Z","updated_at":"2018-03-20T03:06:25Z","closed_at":null,"author_association":"NONE","body":"### Version\r\n3.0.1\r\n\r\n### Reproduction link\r\n[http://jsrun.net/QZZKp/edit](http://jsrun.net/QZZKp/edit)\r\n\r\n### Steps to reproduce\r\nuncomment the code in dependency.mutations.SET_STATUS\r\n\r\n```\r\n            /* doesn't work*/ \r\n            // state.status = Object.assign(state.status, status)\r\n            \r\n            /* work */\r\n            state.status = Object.assign({}, state.status, status)\r\n```\r\n\r\n\r\n### What is expected?\r\nloading status should change to 'false' after 500ms\r\n\r\n### What is actually happening?\r\nloading status is always 'true'\r\n\r\n---\r\nwhat is the diff between \r\n\r\nObject.assign({}, state.status, status) // work\r\n\r\nand \r\n\r\nObject.assign(state.status, status) // doesn't work\r\n\r\n<!-- generated by vue-issues. DO NOT REMOVE -->"}}
{"actor":{"display_login":"fxxjdedd"}}