@edgedev/firebase 1.5.2 → 1.5.4
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/README.md +5 -1
- package/edgeFirebase.ts +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -260,9 +260,13 @@ edgeFirebase.stopUsersSnapshot();
|
|
|
260
260
|
```
|
|
261
261
|
|
|
262
262
|
```vue
|
|
263
|
+
<script setup>
|
|
264
|
+
//users is a ref and needs to be accessed via "value"
|
|
265
|
+
console.log(edgeFirebase.users.value);
|
|
266
|
+
</script>
|
|
263
267
|
<template>
|
|
264
268
|
<div>
|
|
265
|
-
<div v-for="user in edgeFirebase.users" :key="item">
|
|
269
|
+
<div v-for="user in edgeFirebase.users.value" :key="item">
|
|
266
270
|
{{ user.email }}
|
|
267
271
|
</div>
|
|
268
272
|
</div>
|
package/edgeFirebase.ts
CHANGED
|
@@ -1133,7 +1133,7 @@ export const EdgeFirebase = class {
|
|
|
1133
1133
|
});
|
|
1134
1134
|
}
|
|
1135
1135
|
|
|
1136
|
-
public startUsersSnapshot =
|
|
1136
|
+
public startUsersSnapshot = (collectionPath = ''): void => {
|
|
1137
1137
|
this.stopUsersSnapshot();
|
|
1138
1138
|
for (const collectionPathCheck of this.user.canAssignCollectionPaths) {
|
|
1139
1139
|
|
|
@@ -1147,7 +1147,7 @@ export const EdgeFirebase = class {
|
|
|
1147
1147
|
collectionPathCheck
|
|
1148
1148
|
)
|
|
1149
1149
|
)
|
|
1150
|
-
const rolesUnsubscribe =
|
|
1150
|
+
const rolesUnsubscribe = onSnapshot(q, (querySnapshot) => {
|
|
1151
1151
|
const items = {};
|
|
1152
1152
|
querySnapshot.forEach((doc) => {
|
|
1153
1153
|
const user = doc.data();
|
|
@@ -1177,7 +1177,7 @@ export const EdgeFirebase = class {
|
|
|
1177
1177
|
)
|
|
1178
1178
|
)
|
|
1179
1179
|
|
|
1180
|
-
const specialPermissionsunsubscribe =
|
|
1180
|
+
const specialPermissionsunsubscribe = onSnapshot(q, (querySnapshot) => {
|
|
1181
1181
|
const items = {};
|
|
1182
1182
|
querySnapshot.forEach((doc) => {
|
|
1183
1183
|
const user = doc.data();
|