I am using js-data v3.0 and i am trying to prevent store-injection of the record received from my API upon update if the record was changed while saving.
In js-data v2.9 one could abort the lifecycle by calling a callback with an error as argument (docs)
Now in v3.0 I'm using the mapper#afterUpdate() lifecycle hook (docs), but I don't know how to abort the lifecycle.
Apparently returning
nullprevents store-injection.Full code to prevent the
updatecallback from overwriting changes made on the record during thesave():