issues
search
studiobakers
/
react-ui-toolkit
Bakers Studio's React-based UI Toolkit
MIT License
15
stars
2
forks
source link
fix(list): Add uuid for each list item
#179
Closed
yasincaliskan
closed
2 years ago
yasincaliskan
commented
2 years ago
Description
Install
uuid
package to generate unique IDs.
If not provided
listItemKeyGenerator
or
testid
props, generates uuid.
Also, generating a key with
testid
is not best practice. Because if list manipulate (add/remove an item or changing order) causes using wrong keys.
Related Issue:
https://github.com/Hipo/react-ui-toolkit/issues/177
Description
uuid
package to generate unique IDs.listItemKeyGenerator
ortestid
props, generates uuid.testid
is not best practice. Because if list manipulate (add/remove an item or changing order) causes using wrong keys.Related Issue: https://github.com/Hipo/react-ui-toolkit/issues/177