-
Notifications
You must be signed in to change notification settings - Fork 44
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
Warning: Prop id
did not match.
#26
Comments
I'm having the same problem using Next.js |
Me too. |
|
These random numbers are also no bueno for creating snapshots... 😢 |
I provided a PR #36 to solve this problem. |
Any updates on this? :( |
If you're using Next js with server side rendering, you need to import StarRatings from "react-star-ratings" dynamically with no ssr. For example:
For me it's work. Hope this will help. |
Problem resolved with @BodyaNK solution. Thanks |
Just to complement this resolved Issue, I've had to import dynamic child's components when the parent component is dynamic too |
I have this issue and I must use SSR. Do you have any solution? |
@BodyaNK How did u get this working? I did it, and the error dissapeared. But now i can't access the properties from the component. |
I am using I tried the pull request implemented by @christophby, it worked as expected in my simple use case. Replacing with his implementation$ npm install 'git+https://github.com/christophby/react-star-ratings.git#e58364b7b9008e59f22844c26f96cf5d02e61851' Adding
|
Hello, I'm rendering React 16 on client and server(SSR) with new function
React.hydrate()
. And console throw Warning message:Warning: Prop id did not match. Server: "starGrad239537257264089" Client: "starGrad357747279155326"
This is the only problem with this component. Thank's a lot!
The text was updated successfully, but these errors were encountered: