@xh/hoist 73.0.0-SNAPSHOT.1738169491667 → 73.0.0-SNAPSHOT.1738198923410

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/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## v73.0.0-SNAPSHOT - unreleased
4
4
 
5
+ ### 🐞 Bug Fixes
6
+
7
+ * Fixed Role grid losing view state on refresh.
8
+
5
9
  ## v72.0.0 - 2025-01-27
6
10
 
7
11
  ### 💥 Breaking Changes
@@ -80,7 +80,7 @@ export class RoleModel extends HoistModel {
80
80
  runInAction(() => {
81
81
  this.allRoles = this.processRolesFromServer(data);
82
82
  });
83
- this.displayRoles();
83
+ this.displayRoles(loadSpec.isRefresh);
84
84
  await this.gridModel.preSelectFirstAsync();
85
85
  } catch (e) {
86
86
  if (loadSpec.isStale) return;
@@ -212,13 +212,13 @@ export class RoleModel extends HoistModel {
212
212
  //------------------
213
213
  // Implementation
214
214
  //------------------
215
- private displayRoles() {
215
+ private displayRoles(isRefresh?: boolean) {
216
216
  const {gridModel} = this,
217
217
  gridData = this.showInGroups
218
218
  ? this.processRolesForTreeGrid(this.allRoles)
219
219
  : this.allRoles;
220
220
  gridModel.loadData(gridData);
221
- gridModel.expandAll();
221
+ if (!isRefresh) gridModel.expandAll();
222
222
  gridModel.autosizeAsync({includeCollapsedChildren: true});
223
223
  }
224
224
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "73.0.0-SNAPSHOT.1738169491667",
3
+ "version": "73.0.0-SNAPSHOT.1738198923410",
4
4
  "description": "Hoist add-on for building and deploying React Applications.",
5
5
  "repository": "github:xh/hoist-react",
6
6
  "homepage": "https://xh.io",