Skip to content

subscriptions - optimistic updates #1423

Answered by JoviDeCroock
jdgamble555 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey,

This sound a bit counter-intuitive, a subscription isn't meant to have a predictable result, it's more that you are subscribed to a certain entity like a chat that can have updates at any given time, this way you can stay up-to-date with you updating stuff in other tabs or another user sending a message.

What is your use case specifically for "optimistic responses" in subscriptions.

I understand the case for mutations where we know what we are changing, for instance we change a todo.title to be value y and we can change that in the cache before the server responds.

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@kitten
Comment options

@jdgamble555
Comment options

@tom2strobl
Comment options

@jdgamble555
Comment options

@kitten
Comment options

Answer selected by kitten
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants