@jsenv/navi 0.29.508 → 0.29.510
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 +128 -51
- package/dist/dev/jsenv_navi.js.map +5 -5
- package/dist/jsenv_navi.js +128 -51
- package/dist/jsenv_navi.js.map +5 -5
- package/docs/navigation.md +9 -6
- package/package.json +1 -1
package/docs/navigation.md
CHANGED
|
@@ -586,12 +586,15 @@ Five cases, and they are not a policy to configure but five different facts:
|
|
|
586
586
|
- **A reload** lands where one was, as it would have without navi, once the
|
|
587
587
|
page is there ([below](#a-page-that-is-not-whole-yet)).
|
|
588
588
|
|
|
589
|
-
Where the browser exposes its stack (the Navigation API), **a `<Link>`
|
|
590
|
-
destination is the entry right next to the current one becomes a
|
|
591
|
-
traversal**: a "back" link to the page one just came from behaves as a back
|
|
592
|
-
A, B, A, B… growth, and the scroll comes back — and one step forward too.
|
|
593
|
-
towards entries of this document, and never when the push carries explicit
|
|
594
|
-
state.
|
|
589
|
+
Where the browser exposes its stack (the Navigation API), **a `<Link>` or a
|
|
590
|
+
`navTo()` whose destination is the entry right next to the current one becomes a
|
|
591
|
+
real traversal**: a "back" link to the page one just came from behaves as a back
|
|
592
|
+
— no A, B, A, B… growth, and the scroll comes back — and one step forward too.
|
|
593
|
+
Only towards entries of this document, and never when the push carries explicit
|
|
594
|
+
state. A traversal lands when the browser answers, after the call has returned;
|
|
595
|
+
so a state written with `history: "push"` always stacks its entry, since what is
|
|
596
|
+
written right after it (a layer, then what is open inside it) belongs on that
|
|
597
|
+
entry. An arrow that must ALWAYS behave as a back is `navBack()`.
|
|
595
598
|
|
|
596
599
|
Further back, a push is an arrival even when it means a return: a bar entry
|
|
597
600
|
leading back to a thread whose address names the item one was reading
|