@xh/hoist 71.0.0-SNAPSHOT.1736263796812 → 71.0.0-SNAPSHOT.1736268096149

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.
@@ -509,8 +509,8 @@ export class ViewManagerModel<T = PlainObject> extends HoistModel {
509
509
  });
510
510
 
511
511
  // 2) Initialize/choose initial view. Null is ok, and will yield default.
512
- let initialView,
513
- initialTkn = initialState.currentView;
512
+ let initialView: ViewInfo,
513
+ initialTkn: string = initialState.currentView;
514
514
  if (isUndefined(initialTkn)) {
515
515
  initialView = this.initialViewSpec?.(views);
516
516
  } else if (!isNull(initialTkn)) {
@@ -519,7 +519,7 @@ export class ViewManagerModel<T = PlainObject> extends HoistModel {
519
519
  initialView = null;
520
520
  }
521
521
 
522
- await this.loadViewAsync(initialView, this.pendingValue);
522
+ await this.loadViewAsync(initialView?.token, this.pendingValue);
523
523
  } catch (e) {
524
524
  // Always ensure at least default view is installed (other state defaults are fine)
525
525
  this.loadViewAsync(null, this.pendingValue);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "71.0.0-SNAPSHOT.1736263796812",
3
+ "version": "71.0.0-SNAPSHOT.1736268096149",
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",