@jsenv/navi 0.29.461 → 0.29.463
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 +152 -62
- package/dist/dev/jsenv_navi.js.map +4 -4
- package/dist/jsenv_navi.js +152 -62
- package/dist/jsenv_navi.js.map +4 -4
- package/docs/navigation.md +20 -10
- package/package.json +1 -1
package/docs/navigation.md
CHANGED
|
@@ -500,16 +500,26 @@ a stand-in — a pending screen, a `<Loading>` fallback, a list of three skeleto
|
|
|
500
500
|
clamped to it, and the reader lands at the top of a page that arrives a moment
|
|
501
501
|
later.
|
|
502
502
|
|
|
503
|
-
**After a reload, navi waits for the route actions** that the
|
|
504
|
-
nothing to draw for:
|
|
503
|
+
**After a reload or a back/forward, navi waits for the route actions** that the
|
|
504
|
+
page has nothing to draw for: its code arriving on its own
|
|
505
505
|
([dynamic_import.md](./dynamic_import.md)), a read the previous document did not
|
|
506
506
|
keep ([`keepPageOnScreen`](./resource.md#keeppageonscreen-the-page-on-screen-drawn-again-by-the-next-document) draws a kept one at once, and that one
|
|
507
|
-
is not waited for)
|
|
508
|
-
page has rendered. When one of them fails,
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
delays the position of every page, since
|
|
512
|
-
height.
|
|
507
|
+
is not waited for), a read reset since the page was left. The position is put
|
|
508
|
+
back once they have answered and the page has rendered. When one of them fails,
|
|
509
|
+
nothing is written: the screen saying so is not the page the position was taken
|
|
510
|
+
on, and the position stays for the visit that brings it back. What it costs: a
|
|
511
|
+
slow read that every page asks for delays the position of every page, since
|
|
512
|
+
nothing tells navi which reads set the height.
|
|
513
|
+
|
|
514
|
+
A route action that starts asking later is waited for too: one gated on app
|
|
515
|
+
state the page did not have yet (`when`, or params that read an app-wide read
|
|
516
|
+
such as the signed-in user), or one whose params are another's answer. Before it
|
|
517
|
+
asks, nothing tells "not yet" from "never", so the position is written into what
|
|
518
|
+
the page shows — and stays pending while a route action of the page has not
|
|
519
|
+
asked: the next one that starts without an answer is waited for the same way,
|
|
520
|
+
and the position is put back again once it is drawn. It ends once every route
|
|
521
|
+
action of the page has asked; an action that never asks on this page (a search
|
|
522
|
+
with no query) keeps it pending until the reader takes over.
|
|
513
523
|
|
|
514
524
|
**What navi cannot see, the page says**: a read it starts itself
|
|
515
525
|
(`useAsyncData(…, { run: true })`), content whose height arrives late. While
|
|
@@ -526,8 +536,8 @@ as above. A row of tabs is not held: it gives a tab its position as it travels,
|
|
|
526
536
|
and measures right after (see [below](#a-row-of-tabs-where-a-replace-is-an-arrival)).
|
|
527
537
|
|
|
528
538
|
**The reader taking over cancels it.** A finger, a click, a wheel or a key
|
|
529
|
-
|
|
530
|
-
would lose whatever they had started on. Going elsewhere cancels it too.
|
|
539
|
+
while the position is pending, and it is not written again: moved afterwards,
|
|
540
|
+
they would lose whatever they had started on. Going elsewhere cancels it too.
|
|
531
541
|
|
|
532
542
|
A `<List>` that opens on an item is the opposite case, and needs nothing: it
|
|
533
543
|
places the document itself, by measuring the item, and the url's offset is not
|