You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed subscribing to the same GraphQL query twice causes some interesting behaviour. Specifically this happens:
client subscribes twice to the exact same query, gets back two responses with same subscriptionId, i.e. "subscriptionId":"__absinthe__:doc:116039402"
client receives twosubscription:data events (as I'd expect) when changes are published
unsubscribing once causes no more subscription:data events for that query, even though I have one "active" subscription
I was wondering what the expected behaviour is? I can try to take a stab at fixing it
Personally, I think it would make sense to require unsubscribing twice (i.e. each doc event for a single query should be paired up with a unsubscribe event)
Thoughts?
The text was updated successfully, but these errors were encountered:
I noticed subscribing to the same GraphQL query twice causes some interesting behaviour. Specifically this happens:
"subscriptionId":"__absinthe__:doc:116039402"
subscription:data
events (as I'd expect) when changes are publishedsubscription:data
events for that query, even though I have one "active" subscriptionI was wondering what the expected behaviour is? I can try to take a stab at fixing it
Personally, I think it would make sense to require unsubscribing twice (i.e. each
doc
event for a single query should be paired up with aunsubscribe
event)Thoughts?
The text was updated successfully, but these errors were encountered: