@jsenv/navi 0.29.434 → 0.29.436
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 +291 -150
- package/dist/dev/jsenv_navi.js.map +13 -12
- package/dist/jsenv_navi.js +231 -138
- package/dist/jsenv_navi.js.map +13 -12
- package/docs/route_transitions.md +7 -0
- package/package.json +1 -1
|
@@ -451,6 +451,9 @@ What that means for a page and for the application around it:
|
|
|
451
451
|
running, and a component reading the URL, a route or a signal directly
|
|
452
452
|
re-renders in it too, hidden. What it reads through `useAsyncData` does not:
|
|
453
453
|
navi leaves a page alone as soon as its container would no longer show it.
|
|
454
|
+
Its `navState` keeps the entry it was shown on: a section or a popup open
|
|
455
|
+
there stays open until the page is taken down, rather than being closed by
|
|
456
|
+
the entry that replaced it.
|
|
454
457
|
- **It is taken down after the page arriving is up.** A cleanup that puts back
|
|
455
458
|
what it found — a document title, a class on `<body>`, a value in a shared store
|
|
456
459
|
— puts a stale value back over the new page's. Such a registration is written as
|
|
@@ -475,6 +478,10 @@ What that means for a page and for the application around it:
|
|
|
475
478
|
itself out of reach — the page arriving could not even take the focus — and one
|
|
476
479
|
in a page kept while leaving would stay open for the whole movement. The page is
|
|
477
480
|
then taken down at once, as without a movement.
|
|
481
|
+
- **Not past a `<Loading>` around both pages.** When the page arriving suspends
|
|
482
|
+
to a boundary that holds the page being left too, the boundary parks both and
|
|
483
|
+
runs every cleanup in them: the page being left is then taken down when the
|
|
484
|
+
boundary resumes, instead of having all its effects run again while hidden.
|
|
478
485
|
- **Only where the page would have been taken down anyway.** A page rendered by
|
|
479
486
|
the same element on both sides — two routes, one component — is the same
|
|
480
487
|
instance carried over.
|