react-social-media-embed icon indicating copy to clipboard operation
react-social-media-embed copied to clipboard

TiktokEmbed - Warning: Prop `id` did not match.

Open tigerdi opened this issue 1 year ago • 1 comments

Getting the following warning when using the TiktokEmbed component: Warning: Prop 'id' did not match. Server: "5d851a36-e58a-4967-9d52-122c907a0792" Client: "eeb0cf21-c3ea-4513-a566-05d7fe32e932"

I am using it in a nextjs site, and have updated to version 2.3.5

tigerdi avatar May 02 '23 14:05 tigerdi

Hello @tigerdi I think that the issue problem is related to the Next js server-side rendering. Maybe there is a problem with initializing the id value you should ensure that it's done on the client side only, you can do that inside a UseEffect hook. Can you share with us your code where you are using the TikTokEmbed component?

zeghmouri avatar May 03 '23 17:05 zeghmouri