@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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.126.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.126.0...@next-core/brick-kit@2.126.1) (2022-08-09)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * do not report 404 when page is empty ([869038e](https://github.com/easyops-cn/next-core/commit/869038e2d5447001aa7e22a1218ce91774ce0905))
12
+
13
+
14
+
15
+
16
+
6
17
  # [2.126.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.125.0...@next-core/brick-kit@2.126.0) (2022-08-08)
7
18
 
8
19
 
@@ -11907,9 +11907,10 @@
11907
11907
 
11908
11908
  menuInBg.forEach(brick => {
11909
11909
  appendBrick(brick, mountPoints.portal);
11910
- });
11910
+ }); // When we have a matched route other than an abstract route,
11911
+ // we say *page found*, otherwise, *page not found*.
11911
11912
 
11912
- if (main.length > 0 || portal.length > 0) {
11913
+ if (route && route.type !== "routes" || failed) {
11913
11914
  main.length > 0 && mountTree(main, mountPoints.main);
11914
11915
  portal.length > 0 && mountTree(portal, mountPoints.portal);
11915
11916
  afterMountTree(mountPoints.main);
@@ -11949,9 +11950,9 @@
11949
11950
  _this3.kernel.prefetchDepsOfStoryboard(storyboard);
11950
11951
  });
11951
11952
  } else {
11952
- Promise.resolve().then(() => {
11953
+ setTimeout(() => {
11953
11954
  _this3.kernel.prefetchDepsOfStoryboard(storyboard);
11954
- });
11955
+ }, 0);
11955
11956
  }
11956
11957
 
11957
11958
  return;