@jsenv/navi 0.30.32 → 0.30.33
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/dev/jsenv_navi.js +12 -2
- package/dist/dev/jsenv_navi.js.map +3 -3
- package/dist/jsenv_navi.js +12 -2
- package/dist/jsenv_navi.js.map +3 -3
- package/package.json +1 -1
package/dist/dev/jsenv_navi.js
CHANGED
|
@@ -14441,7 +14441,9 @@ const isRenderingPageChange = () => renderingPageChange;
|
|
|
14441
14441
|
* outside its own nodes (a slot in a bar, the document a list scrolls) steps
|
|
14442
14442
|
* out rather than showing with, or moving, the page arriving. Every box of it
|
|
14443
14443
|
* measures 0×0 by then. Set after the render keeping the page, so that render
|
|
14444
|
-
* and what it builds can only ask `hasLeft()`.
|
|
14444
|
+
* and what it builds can only ask `hasLeft()`. Cleared by the render showing
|
|
14445
|
+
* the page again, before anything below it renders: what mounts then never
|
|
14446
|
+
* reads its page as leaving.
|
|
14445
14447
|
*/
|
|
14446
14448
|
const RoutePageContext = createContext(null);
|
|
14447
14449
|
|
|
@@ -38547,8 +38549,16 @@ const RouteRowPane = ({
|
|
|
38547
38549
|
value: page
|
|
38548
38550
|
}, branch.node));
|
|
38549
38551
|
}
|
|
38552
|
+
// Back on screen before what it holds renders: built here, or mounted again under
|
|
38553
|
+
// it, that content runs its layout effects before this component's, and would
|
|
38554
|
+
// otherwise read its page as leaving.
|
|
38555
|
+
if (shown) {
|
|
38556
|
+
page.ownLeavingSignal.value = false;
|
|
38557
|
+
}
|
|
38550
38558
|
useLayoutEffect(() => {
|
|
38551
|
-
|
|
38559
|
+
if (!shown) {
|
|
38560
|
+
page.ownLeavingSignal.value = true;
|
|
38561
|
+
}
|
|
38552
38562
|
}, [shown]);
|
|
38553
38563
|
return jsx("div", {
|
|
38554
38564
|
"data-route-row-pane": "",
|