{"action":"created","issue":{"url":"https://api.github.com/repos/FormidableLabs/urql/issues/110","repository_url":"https://api.github.com/repos/FormidableLabs/urql","labels_url":"https://api.github.com/repos/FormidableLabs/urql/issues/110/labels{/name}","comments_url":"https://api.github.com/repos/FormidableLabs/urql/issues/110/comments","events_url":"https://api.github.com/repos/FormidableLabs/urql/issues/110/events","html_url":"https://github.com/FormidableLabs/urql/issues/110","id":349289304,"node_id":"MDU6SXNzdWUzNDkyODkzMDQ=","number":110,"title":"client-component subscribes repeatedly to client","user":{"login":"willcosgrove","id":77887,"node_id":"MDQ6VXNlcjc3ODg3","avatar_url":"https://avatars0.githubusercontent.com/u/77887?v=4","gravatar_id":"","url":"https://api.github.com/users/willcosgrove","html_url":"https://github.com/willcosgrove","followers_url":"https://api.github.com/users/willcosgrove/followers","following_url":"https://api.github.com/users/willcosgrove/following{/other_user}","gists_url":"https://api.github.com/users/willcosgrove/gists{/gist_id}","starred_url":"https://api.github.com/users/willcosgrove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willcosgrove/subscriptions","organizations_url":"https://api.github.com/users/willcosgrove/orgs","repos_url":"https://api.github.com/users/willcosgrove/repos","events_url":"https://api.github.com/users/willcosgrove/events{/privacy}","received_events_url":"https://api.github.com/users/willcosgrove/received_events","type":"User","site_admin":false},"labels":[{"id":814524194,"node_id":"MDU6TGFiZWw4MTQ1MjQxOTQ=","url":"https://api.github.com/repos/FormidableLabs/urql/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-08-09T21:01:33Z","updated_at":"2018-08-09T22:37:51Z","closed_at":null,"author_association":"NONE","body":"Hi, I wish I had more information to give you in this issue.  I've been trying to debug this issue for a couple of hours now, and I haven't been able to figure out what the root cause is.\r\n\r\nI've got a component (I've tried using the ConnectHOC, and the Connect component) which is connected.  It has one query, and two mutations.  Every time I execute a mutation, a new subscription gets created on the client for the query.  The query never changes during this exercise.  Each of these subscriptions executes the same query.  Running a mutation causes all the subscriptions to refetch, which hammers my server with an increasing number of identical GraphQL queries.  I cannot for the life of me figure out what I am doing that would cause this.  Have you seen anything like this before?"},"comment":{"url":"https://api.github.com/repos/FormidableLabs/urql/issues/comments/411920141","html_url":"https://github.com/FormidableLabs/urql/issues/110#issuecomment-411920141","issue_url":"https://api.github.com/repos/FormidableLabs/urql/issues/110","id":411920141,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTkyMDE0MQ==","user":{"login":"kitten","id":2041385,"node_id":"MDQ6VXNlcjIwNDEzODU=","avatar_url":"https://avatars0.githubusercontent.com/u/2041385?v=4","gravatar_id":"","url":"https://api.github.com/users/kitten","html_url":"https://github.com/kitten","followers_url":"https://api.github.com/users/kitten/followers","following_url":"https://api.github.com/users/kitten/following{/other_user}","gists_url":"https://api.github.com/users/kitten/gists{/gist_id}","starred_url":"https://api.github.com/users/kitten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kitten/subscriptions","organizations_url":"https://api.github.com/users/kitten/orgs","repos_url":"https://api.github.com/users/kitten/repos","events_url":"https://api.github.com/users/kitten/events{/privacy}","received_events_url":"https://api.github.com/users/kitten/received_events","type":"User","site_admin":false},"created_at":"2018-08-09T22:37:51Z","updated_at":"2018-08-09T22:37:51Z","author_association":"MEMBER","body":"@willcosgrove I think even if the subscription is not duplicated you should still see the query being repeated. If it's indeed send multiple times (if you're rendering the client component several times) you might be glad to hear that the `next` version has query deduplication :)\r\n\r\nSo maybe try to install the `next` tag (`urql@next`) and see if it fixes this behaviour. `v0.3.0-next4` will go out relatively soon and doesn't have any breaking changes."}}
{"actor":{"display_login":"kitten"}}