Closed frastlin closed 4 years ago
There is no general event for this. Since the events you'll get are known it's pretty easy to implement yourself:
['created', 'updated', 'patched', 'removed'].forEach(event => {
service.on(event, data => service.emit('crudEvent', data));
})
app.mixins might be helpful here as well.
Comment/Problem
I have a data table that should stay in-sync with the server, and the user can update, create, or remove items. Is there a universal event that runs for all CRUD events?