Enable member lazy-loading for /sync and /messages

This commit is contained in:
miruka
2020-04-03 19:52:50 -04:00
parent 48a5f54e54
commit 1adbddc063
2 changed files with 29 additions and 10 deletions

View File

@@ -50,13 +50,13 @@ QtObject {
function onModelItemInserted(syncId, index, item) {
// print("insert", syncId, index, item)
print("insert", syncId, index, item)
ModelStore.get(syncId).insert(index, item)
}
function onModelItemFieldChanged(syncId, oldIndex, newIndex, field, value){
// print("change", syncId, oldIndex, newIndex, field, value)
print("change", syncId, oldIndex, newIndex, field, value)
const model = ModelStore.get(syncId)
model.setProperty(oldIndex, field, value)
@@ -65,7 +65,7 @@ QtObject {
function onModelItemDeleted(syncId, index) {
// print("del", syncId, index)
print("del", syncId, index)
ModelStore.get(syncId).remove(index)
}