apollo
apollo copied to clipboard
Optimistic response and @done event - Lifecycle
Describe the bug
It looks like the @done
event is not triggered after the optimistic response is applied, but it waits for the the server response to arrive before being triggered.
It's very confusing for the user because the user is not supposed to know that something else is going to happen. If he has to wait for the @done
to happen before moving on to other actions, then it's not really useful to have an optimistic response happening in the meantime?
Or am I missing something?
Versions vue: 2.6.12 vue-apollo: 3.0.5 apollo-client: 2.27.4
Maybe adding another hook like "onOptimisticResponse" could make sense?