@onehat/data 1.18.1 → 1.18.2
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/package.json +1 -1
- package/src/Repository/Ajax.js +3 -1
package/package.json
CHANGED
package/src/Repository/Ajax.js
CHANGED
|
@@ -966,7 +966,9 @@ class AjaxRepository extends Repository {
|
|
|
966
966
|
|
|
967
967
|
// Do we need to reload?
|
|
968
968
|
if (!this.eventsPaused) {
|
|
969
|
-
if (this._operations.add
|
|
969
|
+
if (this._operations.add && this.isRemotePhantomMode) {
|
|
970
|
+
// Do nothing, as we don't want to immediately reload on add for a remote phantom mode record. It won't appear, and it will cause all kinds of trouble!
|
|
971
|
+
} else if (this._operations.add || this._operations.delete) {
|
|
970
972
|
this.reload();
|
|
971
973
|
} else {
|
|
972
974
|
this.emit('changeData', this.entities);
|