Issue with automatic UI updates in Apollo: `updateQuery` not working properly with `subscribeToMore`
问题 I'm using GraphQL subscriptions for my chat application, but I have an issue with the UI updates. Here are the query and the mutation I'm using: const createMessage = gql` mutation createMessage($text: String!, $sentById: ID!) { createMessage(text: $text, sentById: $sentById) { id text } } ` const allMessages = gql` query allMessages { allMessages { id text createdAt sentBy { name location { latitude longitude } } } } ` Then, when exporting, I'm wrapping my Chat component like so: export