Closed zjy365 closed 1 year ago
Hey! ReactContentLoader creates a random id in order to keep each loading unique, so that's expected and you can avoid this error using uniqueKey
prop:
const id = React.useId()
return <ReactContentLoader uniqueKey={id}> ... </ReactContentLoader>
Hope it works
thanks
What did you do?
In a clean next project, the react content-loader is used directly in the index file to report the React Hydration Error Warning: Prop
id
did not match. Server: "2xdmr67-aria" Client: "bjsahf-aria"What did you expect to happen?
Expect to eliminate this warning
Which versions of react-content-loader, and which browser are affected by this issue?