-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't be reliably used for key generation #10
Labels
Comments
Thanks @maciejmyslinski I will take a look :) |
Tomekmularczyk
added a commit
that referenced
this issue
Nov 10, 2019
This was referenced Nov 10, 2019
Merged
Tomekmularczyk
added a commit
that referenced
this issue
Nov 10, 2019
@maciejmyslinski this should have been fixed with v2.0.2. With the next version, I think I'm going to remove dependencies list argument and just regenerate id's when the first argument of |
awesome! 🔥 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey!
Thank you for creating this library.
I want to report I use
useId
to generate ids for my elements and then wanted to use these ids as keys but when number of elements increases by more than 1, React throws an error that some elements don't have uniquekey
prop.That's because on first render
useId
doesn't actually generate moreid
. It only happens on the second rerender.Here is the demo and here is a source code.
The text was updated successfully, but these errors were encountered: