@data-weave/backend-firestore 0.4.25 → 0.4.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/FirestoreList.js +3 -1
- package/lib/version.js +1 -1
- package/package.json +3 -3
package/lib/FirestoreList.js
CHANGED
|
@@ -59,6 +59,7 @@ class FirestoreList extends datamanager_1.LiveList {
|
|
|
59
59
|
this.onUpdateAll(newValues);
|
|
60
60
|
}
|
|
61
61
|
handleSubsequentDataChanges(changes) {
|
|
62
|
+
const newValues = [...this.values];
|
|
62
63
|
changes.forEach(change => {
|
|
63
64
|
if (change.type === 'added') {
|
|
64
65
|
this.onAddAtIndex(change.newIndex, change.doc.data());
|
|
@@ -70,8 +71,9 @@ class FirestoreList extends datamanager_1.LiveList {
|
|
|
70
71
|
this.onRemoveAtIndex(change.oldIndex);
|
|
71
72
|
}
|
|
72
73
|
});
|
|
74
|
+
this.onUpdateAll(newValues);
|
|
73
75
|
// TODO: handle onUpdate in the parent class - make sure it's only called once after all changes are processed
|
|
74
|
-
this.onUpdate()
|
|
76
|
+
// this.onUpdate()
|
|
75
77
|
}
|
|
76
78
|
unSubscribe() {
|
|
77
79
|
var _a;
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@data-weave/backend-firestore",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.26",
|
|
4
4
|
"author": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"registry": "https://registry.npmjs.org/"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@data-weave/datamanager": "~0.4.
|
|
26
|
+
"@data-weave/datamanager": "~0.4.25",
|
|
27
27
|
"firebase": ">=11.0.0"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "70c0827db3b7982a46ae896d1693b02a6581bc4d"
|
|
30
30
|
}
|