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 was scratching my head for quite a while about the behavior of this (based on the full example) compared to simply publishing directly on mutations with something like graphql-yoga's pubsub.
Seeing how I suppose neither using the apollo-client, nor subscribeToMore is particularly rare, I wondered whether it would be worth mentioning in the README that if one uses it, one has to skip broadcasting the initial snapshot. (I keep track of it with an isInitialSnapshot in the handler.)
This has also made me realize that in a scenario where you have e.g. 1000 documents in that collection and hundreds of people per hour loading up the page, that's a lot of unnecessary load and traffic. Maybe this would also be good to point out?
The text was updated successfully, but these errors were encountered:
I was scratching my head for quite a while about the behavior of this (based on the full example) compared to simply publishing directly on mutations with something like graphql-yoga's pubsub.
Seeing how I suppose neither using the
apollo-client
, norsubscribeToMore
is particularly rare, I wondered whether it would be worth mentioning in the README that if one uses it, one has to skip broadcasting the initial snapshot. (I keep track of it with anisInitialSnapshot
in the handler.)This has also made me realize that in a scenario where you have e.g. 1000 documents in that collection and hundreds of people per hour loading up the page, that's a lot of unnecessary load and traffic. Maybe this would also be good to point out?
The text was updated successfully, but these errors were encountered: