updating the note cache after sync

This commit is contained in:
azivner
2019-01-03 23:27:10 +01:00
parent e2dfe1b6de
commit c3913a8735
4 changed files with 31 additions and 5 deletions

View File

@@ -299,7 +299,9 @@ function getNotePath(noteId) {
}
}
eventService.subscribe(eventService.ENTITY_CHANGED, async ({entityName, entity}) => {
eventService.subscribe([eventService.ENTITY_CHANGED, eventService.ENTITY_DELETED, eventService.ENTITY_SYNCED], async ({entityName, entity}) => {
// note that entity can also be just POJO without methods if coming from sync
if (!loaded) {
return;
}