-
-
Notifications
You must be signed in to change notification settings - Fork 173
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
A duplicate id was found in the parameter array error with hello world example #108
Comments
Check out this issue #92. |
@jrraymond were you able to resolve this issue? |
It happens to me every time on Reacts DOM update sequence. @crubier Can this get some attention? |
I think it's problem is caused by unnecessary re-rendering, which creates a new component with the same key as the previous one. The Math.random() method will play the animation every time it is re-rendered. |
I put what I've seen about where this problem is coming from on #92 (comment) |
This solution work for me, thanks @ivgtr |
I also encountered this problem in React 18, and I had been solved by remove |
Late to the party, but just do this instead:
|
Worked for me :) |
Removing React's Strict mode isnt a good choice |
Thanks @Davste93 for your proposed workaround, worked for me. Making what should be a props a state for this precise use case helped me get rid of the Removing |
Thank you for this project!
I tried to recreate the example from the readme with some very minor modifications (no explicit call to
ReactDOM
). The example renders correctly but fails when the component re-renders with the following error:I'm using the following versions:
The text was updated successfully, but these errors were encountered: