Subscription query self canceling in GraphiQL when navigating to another tab #1346
-
So when I execute a subscription query in GraphiQL it starts to listen. Then, when I navigate to another tab to make a query, that subscription query stops listening. To get around this I have to open another instance of GraphiQL and make a subscription query there and normal query from another instance, which is cumbersome. Is there a better solution to do it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @knightfury16, currently GraphiQL Tabs do not support running in the background because the fetcher instance is shared across all GraphiQL tabs. Thus the subscription is terminated when you start executing a mutation or query in a different tab. Today, there is no other solution aside from the workaround you mentioned, until it is implemented within GraphiQL. See the original pull request, where this was discussed before. |
Beta Was this translation helpful? Give feedback.
Hey @knightfury16, currently GraphiQL Tabs do not support running in the background because the fetcher instance is shared across all GraphiQL tabs. Thus the subscription is terminated when you start executing a mutation or query in a different tab.
Today, there is no other solution aside from the workaround you mentioned, until it is implemented within GraphiQL. See the original pull request, where this was discussed before.