@jsenv/navi 0.29.461 → 0.29.462
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 +101 -48
- package/dist/dev/jsenv_navi.js.map +3 -3
- package/dist/jsenv_navi.js +101 -48
- package/dist/jsenv_navi.js.map +3 -3
- package/docs/navigation.md +9 -0
- package/package.json +1 -1
package/docs/navigation.md
CHANGED
|
@@ -511,6 +511,15 @@ reload that brings it back. What it costs: a slow read that every page asks for
|
|
|
511
511
|
delays the position of every page, since nothing tells navi which reads set the
|
|
512
512
|
height.
|
|
513
513
|
|
|
514
|
+
A route action that starts asking only after that render is waited for too: one
|
|
515
|
+
gated on app state the first render did not have yet (`when`, or params that
|
|
516
|
+
read an app-wide read such as the signed-in user), or one whose params are
|
|
517
|
+
another's answer. Before it asks, nothing tells "not yet" from "never", so the
|
|
518
|
+
position is written into what the page shows. When the document is too short to
|
|
519
|
+
hold it, the position is not spent: the next route action that starts without an
|
|
520
|
+
answer is waited for the same way, and the position is put back again once it
|
|
521
|
+
is drawn.
|
|
522
|
+
|
|
514
523
|
**What navi cannot see, the page says**: a read it starts itself
|
|
515
524
|
(`useAsyncData(…, { run: true })`), content whose height arrives late. While
|
|
516
525
|
`useHoldScrollRestoration(held)` is given `true`, the position of a reload or of
|