@jsenv/navi 0.29.229 → 0.29.230
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 +174 -143
- package/dist/dev/jsenv_navi.js.map +3 -3
- package/dist/jsenv_navi.js +174 -143
- package/dist/jsenv_navi.js.map +3 -3
- package/docs/scroll.md +9 -3
- package/package.json +1 -1
package/docs/scroll.md
CHANGED
|
@@ -167,9 +167,15 @@ children and nothing else.
|
|
|
167
167
|
|
|
168
168
|
Both rest on each row knowing where it stands, which for rows declared one by
|
|
169
169
|
one is the order they are written in — `useSearchText` hands the collection back
|
|
170
|
-
reordered, the caller renders it in that order, and the places follow.
|
|
171
|
-
|
|
172
|
-
|
|
170
|
+
reordered, the caller renders it in that order, and the places follow. Two things
|
|
171
|
+
are needed for that, and the list warns in dev when the second is missing:
|
|
172
|
+
|
|
173
|
+
- **a stable `key` on every row**, which is what says a row moved rather than a
|
|
174
|
+
row changed;
|
|
175
|
+
- **the rows as the list's own children**. The places are read off the children
|
|
176
|
+
the list is given, so a component of yours rendering the rows is one child
|
|
177
|
+
however many rows come out of it — they all take the same place and keep the
|
|
178
|
+
order they first mounted in. Hand the list the rows, or a `<List.Items>`.
|
|
173
179
|
|
|
174
180
|
One case is knowingly left out: a row selected during the search does not hold
|
|
175
181
|
the view. Emptying the search takes the list back to where it was, which may be
|