@next-core/brick-kit 2.126.0 → 2.126.1

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/dist/index.esm.js CHANGED
@@ -11908,9 +11908,10 @@ class Router {
11908
11908
 
11909
11909
  menuInBg.forEach(brick => {
11910
11910
  appendBrick(brick, mountPoints.portal);
11911
- });
11911
+ }); // When we have a matched route other than an abstract route,
11912
+ // we say *page found*, otherwise, *page not found*.
11912
11913
 
11913
- if (main.length > 0 || portal.length > 0) {
11914
+ if (route && route.type !== "routes" || failed) {
11914
11915
  main.length > 0 && mountTree(main, mountPoints.main);
11915
11916
  portal.length > 0 && mountTree(portal, mountPoints.portal);
11916
11917
  afterMountTree(mountPoints.main);
@@ -11950,9 +11951,9 @@ class Router {
11950
11951
  _this3.kernel.prefetchDepsOfStoryboard(storyboard);
11951
11952
  });
11952
11953
  } else {
11953
- Promise.resolve().then(() => {
11954
+ setTimeout(() => {
11954
11955
  _this3.kernel.prefetchDepsOfStoryboard(storyboard);
11955
- });
11956
+ }, 0);
11956
11957
  }
11957
11958
 
11958
11959
  return;