@agility-workbench/angular-grid 1.2.0 → 1.3.0

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.
@@ -964,10 +964,16 @@ class AwbGrid {
964
964
  };
965
965
  return () => api.updateGridOptions(opts);
966
966
  });
967
+ // createGrid already asked the server for the first block with the creation-time source, and
968
+ // re-applying the same object would purge the store and fetch it again — so, like columnDefs
969
+ // and rowData above, startup compares against the creation-time snapshot and only a changed
970
+ // input goes through updateGridOptions (which refetches, as a new source must).
971
+ let lastSource = untracked(() => this.serverSideDataSource());
967
972
  this.syncEffect(() => {
968
973
  const source = this.serverSideDataSource();
969
- if (this.rowModelType() !== "serverSide" || !source)
974
+ if (this.rowModelType() !== "serverSide" || !source || source === lastSource)
970
975
  return null;
976
+ lastSource = source;
971
977
  return () => api.updateGridOptions({ serverSideDataSource: source });
972
978
  });
973
979
  this.syncEffect(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agility-workbench/angular-grid",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "Angular bindings for @agility-workbench/grid — a high-performance data grid. Supports Angular 20.3 through 22.",
5
5
  "license": "MIT",
6
6
  "author": "Himanshu M",
@@ -33,7 +33,7 @@
33
33
  "node": "^20.19.0 || ^22.12.0 || >=24.0.0"
34
34
  },
35
35
  "dependencies": {
36
- "@agility-workbench/grid": "^1.2.0",
36
+ "@agility-workbench/grid": "^1.3.0",
37
37
  "tslib": "^2.3.0"
38
38
  },
39
39
  "peerDependencies": {