Fixed #17. Update the dataItem cache and emit an event