You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,6 +121,9 @@ The component you pass to `node_map` gets mounted for each item of the array you
121
121
> [!IMPORTANT]
122
122
> Allowed array items are numbers, strings and objects. If you pass objects, they must have an unique `id` property. There must not be two items of the same value or id.
123
123
124
+
> [!IMPORTANT]
125
+
> Components used with `node_map` must use `hook_dom` to define their root element. This is required for efficient reordering of list items.
126
+
124
127
### DOM components
125
128
126
129
The leaves of your component tree are mostly made out of native dom elements. To use such a component, use `node_dom` instead of `node`. The signature is the same, except for the first argument being a descriptor, similar to css selectors: `tagName[attr1=value][attr2][...]`
0 commit comments