apollo icon indicating copy to clipboard operation
apollo copied to clipboard

Optimistic response and @done event - Lifecycle

Open sve-odoo opened this issue 3 years ago • 1 comments

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

sve-odoo avatar Jun 01 '21 12:06 sve-odoo

Maybe adding another hook like "onOptimisticResponse" could make sense?

sve-odoo avatar Jun 01 '21 12:06 sve-odoo