@sumaris-net/ngx-components 2.4.25-rc1 → 2.4.25-rc2

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.
@@ -28238,8 +28238,8 @@ class AppEntityEditor extends AppTabEditor {
28238
28238
  // Skip if disable, or already listening
28239
28239
  if (this._listenChangesSubscription || !this._enableListenChanges)
28240
28240
  return;
28241
- // Skip if new or local data
28242
- if (this.isNewData || EntityUtils.isLocal(this.data))
28241
+ // Skip if new (nothing to listen)
28242
+ if (this.isNewData)
28243
28243
  return;
28244
28244
  // Listen for changes on server
28245
28245
  const subscription = this.listenChanges(this.data.id, {
@@ -28275,7 +28275,7 @@ class AppEntityEditor extends AppTabEditor {
28275
28275
  });
28276
28276
  }
28277
28277
  }
28278
- stopListenRemoteChanges() {
28278
+ stopListenChanges() {
28279
28279
  this._listenChangesSubscription?.unsubscribe();
28280
28280
  }
28281
28281
  async updateView(data, opts) {
@@ -28496,7 +28496,7 @@ class AppEntityEditor extends AppTabEditor {
28496
28496
  }
28497
28497
  async unload(opts) {
28498
28498
  await super.unload(opts);
28499
- this.stopListenRemoteChanges();
28499
+ this.stopListenChanges();
28500
28500
  this.form.reset();
28501
28501
  this.registerForms();
28502
28502
  this.data = null;