@statezero/core 0.1.36 → 0.1.37
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.
|
@@ -112,12 +112,6 @@ export class LiveQueryset {
|
|
|
112
112
|
// Get the full model instance from the model store
|
|
113
113
|
const pkField = __classPrivateFieldGet(this, _LiveQueryset_ModelClass, "f").primaryKeyField;
|
|
114
114
|
return __classPrivateFieldGet(this, _LiveQueryset_ModelClass, "f").fromPk(pk, __classPrivateFieldGet(this, _LiveQueryset_queryset, "f"));
|
|
115
|
-
})
|
|
116
|
-
.filter((instance) => {
|
|
117
|
-
// Filter out ghost entries - instances where the model data doesn't exist i.e because it has
|
|
118
|
-
// been deleted on the backend but the event hasn't been propagated to this queryset
|
|
119
|
-
const storedData = modelStoreRegistry.getEntity(__classPrivateFieldGet(this, _LiveQueryset_ModelClass, "f"), instance.pk);
|
|
120
|
-
return storedData !== null && storedData !== undefined;
|
|
121
115
|
});
|
|
122
116
|
if (!sortAndFilter)
|
|
123
117
|
return instances;
|
package/package.json
CHANGED