@next-core/brick-kit 2.99.1 → 2.99.2
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 +11 -0
- package/dist/index.bundle.js +5 -5
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +5 -5
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -2
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.99.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.99.1...@next-core/brick-kit@2.99.2) (2022-01-04)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **Router:** render call scrollTo before life cycle handler ([92279de](https://github.com/easyops-cn/next-core/commit/92279de483cf623a7bc116d2813ff86fef29695d))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [2.99.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.99.0...@next-core/brick-kit@2.99.1) (2021-12-31)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @next-core/brick-kit
|
package/dist/index.bundle.js
CHANGED
|
@@ -9593,7 +9593,10 @@
|
|
|
9593
9593
|
portal.length > 0 && mountTree(portal, mountPoints.portal);
|
|
9594
9594
|
afterMountTree(mountPoints.main);
|
|
9595
9595
|
afterMountTree(mountPoints.portal);
|
|
9596
|
-
afterMountTree(mountPoints.bg);
|
|
9596
|
+
afterMountTree(mountPoints.bg); // Scroll to top after each rendering.
|
|
9597
|
+
// See https://github.com/ReactTraining/react-router/blob/master/packages/react-router-dom/docs/guides/scroll-restoration.md
|
|
9598
|
+
|
|
9599
|
+
window.scrollTo(0, 0);
|
|
9597
9600
|
|
|
9598
9601
|
if (!failed) {
|
|
9599
9602
|
_this3.locationContext.handlePageLoad();
|
|
@@ -9603,11 +9606,8 @@
|
|
|
9603
9606
|
_this3.locationContext.resolver.scheduleRefreshing();
|
|
9604
9607
|
|
|
9605
9608
|
_this3.locationContext.handleMessage();
|
|
9606
|
-
}
|
|
9607
|
-
// See https://github.com/ReactTraining/react-router/blob/master/packages/react-router-dom/docs/guides/scroll-restoration.md
|
|
9608
|
-
|
|
9609
|
+
}
|
|
9609
9610
|
|
|
9610
|
-
window.scrollTo(0, 0);
|
|
9611
9611
|
pageTracker === null || pageTracker === void 0 ? void 0 : pageTracker(locationContext.getCurrentMatch().path); // analytics page_view event
|
|
9612
9612
|
|
|
9613
9613
|
easyopsAnalytics.userAnalytics.event("page_view", _objectSpread__default["default"]({
|