@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/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. Give every
171
- row a stable `key`: the places are read off the children as they are declared,
172
- and the key is what says a row moved rather than a row changed.
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/navi",
3
- "version": "0.29.229",
3
+ "version": "0.29.230",
4
4
  "type": "module",
5
5
  "description": "Library of components including navigation to create frontend applications",
6
6
  "repository": {