{"action":"opened","issue":{"url":"https://api.github.com/repos/apollographql/apollo-client/issues/2368","repository_url":"https://api.github.com/repos/apollographql/apollo-client","labels_url":"https://api.github.com/repos/apollographql/apollo-client/issues/2368/labels{/name}","comments_url":"https://api.github.com/repos/apollographql/apollo-client/issues/2368/comments","events_url":"https://api.github.com/repos/apollographql/apollo-client/issues/2368/events","html_url":"https://github.com/apollographql/apollo-client/issues/2368","id":267447190,"number":2368,"title":"optimisticResponse does not get overridden when result comes back form the server","user":{"login":"mitjade","id":26156,"avatar_url":"https://avatars0.githubusercontent.com/u/26156?v=4","gravatar_id":"","url":"https://api.github.com/users/mitjade","html_url":"https://github.com/mitjade","followers_url":"https://api.github.com/users/mitjade/followers","following_url":"https://api.github.com/users/mitjade/following{/other_user}","gists_url":"https://api.github.com/users/mitjade/gists{/gist_id}","starred_url":"https://api.github.com/users/mitjade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitjade/subscriptions","organizations_url":"https://api.github.com/users/mitjade/orgs","repos_url":"https://api.github.com/users/mitjade/repos","events_url":"https://api.github.com/users/mitjade/events{/privacy}","received_events_url":"https://api.github.com/users/mitjade/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-22T08:43:18Z","updated_at":"2017-10-22T08:43:18Z","closed_at":null,"author_association":"NONE","body":"**Intended outcome:**\r\nYou submit an add mutation with `optimisticResponse` and then when you get the result from the server, it should get replaced with actual data.\r\n\r\n**Actual outcome:**\r\nWhen you get the result from the server, both `optimisticResponse` and result remain in cache.\r\n\r\n**How to reproduce the issue:**\r\nYou can reproduce this in `apollographql/GitHunt-React` example by adding a comment.\r\n\r\n**Version**\r\n```\r\n    \"apollo-cache-inmemory\": \"^0.2.0-rc.3\",\r\n    \"apollo-client\": \"2.0.0-rc.5\",\r\n    \"apollo-link\": \"^0.8.0\",\r\n    \"apollo-link-http\": \"^0.8.0\",\r\n    \"apollo-link-ws\": \"^0.6.0\",\r\n```"}}
{"actor":{"display_login":"mitjade"}}