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
When creating a custom Icon component, with createLucideIcon function, and then using the new icon somewhere in a list, the following error appears on the console:
Warning: Each child in a list should have a unique "key" prop.
This bug occured within a 'big' project so I tried to trigger it on a just created project: same issue.
Besides creating a react app and installing lucide-react, I simply wrote this code:
I am not sure what is causing this and hope I didn't miss an obvious error.
Steps to reproduce
Create a react app (tried both js and ts) and install lucide-react
Create a new icon with createLucideIcon (with a name a an icon node)
Render the newly created icon inside a map method for exemple
For step 3, created icon cannot support a key prop, and putting the icon inside a div that has a key doesn't solve the issue.
Checklist
I have searched if someone has submitted a similar issue before and there weren't any. (Please make sure to also search closed issues, as this issue might already have been resolved.)
The text was updated successfully, but these errors were encountered:
Package
Version
0.378.0
Can you reproduce this in the latest version?
Browser
Operating system
Description
When creating a custom Icon component, with
createLucideIcon
function, and then using the new icon somewhere in a list, the following error appears on the console:This bug occured within a 'big' project so I tried to trigger it on a just created project: same issue.
Besides creating a react app and installing lucide-react, I simply wrote this code:
I am not sure what is causing this and hope I didn't miss an obvious error.
Steps to reproduce
createLucideIcon
(with a name a an icon node)For step 3, created icon cannot support a key prop, and putting the icon inside a div that has a key doesn't solve the issue.
Checklist
The text was updated successfully, but these errors were encountered: