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
1.**🚨 Always provide `id` or `key` in data** - Required for selection callbacks to work properly. Without it, React Aria uses order-based keys which are useless in select components.
263
-
2.**🚨 Always pass `key` prop to Item** - Must explicitly pass `key={item.id}` or `key={item.key}` in the render function
264
-
3.**Provide explicit `textValue`** - For icons, complex content, or searchable components
265
-
4.**Use consistent types** - All strings or all numbers, never mixed
291
+
1.**🚨 The `items` prop must be an array of objects** - Never pass arrays of strings, numbers, or other primitives. Each object must have an `id` or `key` property.
292
+
2.**🚨 Always provide `id` or `key` in each object** - Required for selection callbacks to work properly. Without it, React Aria uses order-based keys which are useless in select components.
293
+
3.**🚨 Always pass `key` prop to Item** - Must explicitly pass `key={item.id}` or `key={item.key}` in the render function
294
+
4.**Provide explicit `textValue`** - For icons, complex content, or searchable components
295
+
5.**Use consistent types** - All strings or all numbers, never mixed
0 commit comments