Currently, it's only possible to use optimistic updates with rollback when using optimisticResponse. In a lot of cases, it's much more convenient to simply update models in place with a function call.
An api optimisticUpdate could acheive this and exist along side optimisticResponse.
Currently, it's only possible to use optimistic updates with rollback when using
optimisticResponse
. In a lot of cases, it's much more convenient to simply update models in place with a function call.An api
optimisticUpdate
could acheive this and exist along side optimisticResponse.Unlike
optimisticResponse
which always rolls back it's changes, this api would only rollback on errors.