{"action":"created","issue":{"url":"https://api.github.com/repos/apollographql/apollo-angular/issues/324","repository_url":"https://api.github.com/repos/apollographql/apollo-angular","labels_url":"https://api.github.com/repos/apollographql/apollo-angular/issues/324/labels{/name}","comments_url":"https://api.github.com/repos/apollographql/apollo-angular/issues/324/comments","events_url":"https://api.github.com/repos/apollographql/apollo-angular/issues/324/events","html_url":"https://github.com/apollographql/apollo-angular/issues/324","id":238792147,"number":324,"title":"Observables from 2 different requests are connected","user":{"login":"Vi-dot","id":1671048,"avatar_url":"https://avatars3.githubusercontent.com/u/1671048?v=3","gravatar_id":"","url":"https://api.github.com/users/Vi-dot","html_url":"https://github.com/Vi-dot","followers_url":"https://api.github.com/users/Vi-dot/followers","following_url":"https://api.github.com/users/Vi-dot/following{/other_user}","gists_url":"https://api.github.com/users/Vi-dot/gists{/gist_id}","starred_url":"https://api.github.com/users/Vi-dot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vi-dot/subscriptions","organizations_url":"https://api.github.com/users/Vi-dot/orgs","repos_url":"https://api.github.com/users/Vi-dot/repos","events_url":"https://api.github.com/users/Vi-dot/events{/privacy}","received_events_url":"https://api.github.com/users/Vi-dot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-06-27T09:37:20Z","updated_at":"2017-06-27T12:32:56Z","closed_at":null,"body":"Hello,\r\n\r\nI have two different requests, they have nothing to do together.\r\nBut their Observables are connected for no reason.\r\n\r\nA first one is called (after a route applied) :\r\n```javascript\r\nthis.apollo.watchQuery({\r\n      query: this.getReq\r\n    }).subscribe(({data}) => {\r\n      console.log('getReq success');\r\n    },(error) => {});\r\n```\r\nConsole\r\n```batch\r\n> getReq success\r\n```\r\n-----------------------------------------------\r\nThen a second one is called (when clicking on a button) :\r\n```javascript\r\nthis.apollo.mutate({\r\n      mutation: this.updateReq,\r\n      variables: {\r\n        id: _id,\r\n        key: _key,\r\n        value: _value\r\n      }\r\n    }).subscribe(({data}) => {\r\n      console.log('updateReq success');\r\n    },(error) => {});\r\n```\r\nConsole\r\n```batch\r\n> updateReq success\r\n> getReq success\r\n```\r\n\r\nWhy `getReq` is called there ?\r\nThanks"},"comment":{"url":"https://api.github.com/repos/apollographql/apollo-angular/issues/comments/311344128","html_url":"https://github.com/apollographql/apollo-angular/issues/324#issuecomment-311344128","issue_url":"https://api.github.com/repos/apollographql/apollo-angular/issues/324","id":311344128,"user":{"login":"Vi-dot","id":1671048,"avatar_url":"https://avatars3.githubusercontent.com/u/1671048?v=3","gravatar_id":"","url":"https://api.github.com/users/Vi-dot","html_url":"https://github.com/Vi-dot","followers_url":"https://api.github.com/users/Vi-dot/followers","following_url":"https://api.github.com/users/Vi-dot/following{/other_user}","gists_url":"https://api.github.com/users/Vi-dot/gists{/gist_id}","starred_url":"https://api.github.com/users/Vi-dot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vi-dot/subscriptions","organizations_url":"https://api.github.com/users/Vi-dot/orgs","repos_url":"https://api.github.com/users/Vi-dot/repos","events_url":"https://api.github.com/users/Vi-dot/events{/privacy}","received_events_url":"https://api.github.com/users/Vi-dot/received_events","type":"User","site_admin":false},"created_at":"2017-06-27T12:32:56Z","updated_at":"2017-06-27T12:32:56Z","body":"Thanks you both, you're right I mutate an element which is a part of `getReq`results, with the same `__typename` and `id`.\r\nI understand how this feature can be useful, but in my case, I prefer to call getReq only when I decided. An option may do that ?"}}
{"actor":{"display_login":"Vi-dot"}}