@xh/hoist 74.0.0-SNAPSHOT.1748449592533 → 74.0.0-SNAPSHOT.1748547679578

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.
@@ -253,7 +253,9 @@ export const instance: ColumnSpec = {
253
253
  export const loadId: ColumnSpec = {
254
254
  field: {
255
255
  name: 'loadId',
256
- type: 'string'
256
+ type: 'string',
257
+ isDimension: true,
258
+ aggregator: 'UNIQUE'
257
259
  },
258
260
  chooserDescription:
259
261
  'A unique ID assigned to each load/init of the application. Refreshing the tab within your browser will result in a new Load ID.',
@@ -317,7 +319,9 @@ function getSeverityIcon(severity: TrackSeverity): ReactElement {
317
319
  export const tabId: ColumnSpec = {
318
320
  field: {
319
321
  name: 'tabId',
320
- type: 'string'
322
+ type: 'string',
323
+ isDimension: true,
324
+ aggregator: 'UNIQUE'
321
325
  },
322
326
  chooserDescription:
323
327
  'A new Tab ID is established within browser session storage and maintained for the lifetime of the tab. Refreshing the app within your browser will maintain the existing Tab ID',
@@ -146,16 +146,18 @@ export class ActivityTrackingModel extends HoistModel implements ActivityDetailP
146
146
  if (!enabled) return;
147
147
 
148
148
  try {
149
- const data = await XH.postJson({
149
+ const data: PlainObject[] = await XH.postJson({
150
150
  url: 'trackLogAdmin',
151
151
  body: query,
152
152
  loadSpec
153
153
  });
154
154
 
155
- data.forEach(it => this.processRawTrackLog(it));
155
+ if (loadSpec.isStale) return;
156
156
 
157
+ data.forEach(it => this.processRawTrackLog(it));
157
158
  await cube.loadDataAsync(data);
158
159
  } catch (e) {
160
+ if (loadSpec.isStale || loadSpec.isAutoRefresh) return;
159
161
  await cube.clearAsync();
160
162
  XH.handleException(e);
161
163
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "74.0.0-SNAPSHOT.1748449592533",
3
+ "version": "74.0.0-SNAPSHOT.1748547679578",
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",