New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
useSubscription hook has no subscribeToMore #203
Comments
Sounds like a nice feature. I'd be hesitant to implement this in Apollo elements, in case the API diverges from upstream at any point As a workaround, have you considered using a query first and calling subscribeToMore on it? You could use a graphql fragment to reduce duplication between the query and subscription documents |
The idea is to prevent exactly that, because Hasura subscriptions return the initial data (current state) once you subscribes. After that Hasura subscriptions return the new data (new state), not the patches (individual events). |
🤔 If that's the case, could you write a typePolicy to handle the merge for you? |
But the problem is that What about point 1 — adding The point 2 ( |
See apollographql/apollo-client#8727.
@bennypowers Is it possible to fix/implement it in Apollo Elements before it will be fixed/implemented in Apollo Client?
The text was updated successfully, but these errors were encountered: