@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onehat/data",
3
- "version": "1.18.1",
3
+ "version": "1.18.2",
4
4
  "description": "JS data modeling package with adapters for many storage mediums.",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -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 || this._operations.delete) {
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);