-
Notifications
You must be signed in to change notification settings - Fork 1
For - keyedBy prop #4
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
The current implementation for For's auto-key-ing is naive and frankly stupid as it brings in possible issues with duplicate keys.
a possible solution is to default keying the items in the array by they index, and also including a
keyedByprop that will be a string, referencing a property name in the item which to use as a keyexample api
no keyedBy Prop should default to keying the item by its index, not optimal for all cases, but is want is often used.