Isomorphic / Server Side Rendering - Prop `id` did not match
See original GitHub issueWhen using react-accessible-accordion in combination with Next.js I get the following warning on occasion Prop 'id' did not match. Server: "accordion__title-X" Client: "accordion__title-X"
. I have multiple pages with different react-accessible-accordions, and this is what causes the issue I believe. The server uuid is mismatched with the client uuid.
Would it be possible to add a ResetIdCounter
similar to react-tabs? Or is there already a solution I am unaware of?
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (6 by maintainers)
Top Results From Across the Web
react-select: How do I resolve “Warning: Prop `id` did not ...
try to add prop instanceId set as unique string and should work.
Read more >React and React Router Server Rendering
Server side rendering a React app can provide a few different benefits including ... In the console, you'll see a warning Text content...
Read more >Server Rendering with React and React Router
In this comprehensive, up-to-date guide, you'll learn how, why, and when to add server rendering to a React and React Router application.
Read more >Localized Server-Side Rendering with React
The speed and SEO benefits of server-side rendering can outweigh its complexity. Learn here how to localize a React app made with SSR....
Read more >Client & Server Side rendering
**You can find all the code for this post at **github.com/uidotdev/react-router-v5-server-rendering Server-side rendering AKA Isomorphic JavaScript AKA ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@HPieters, you should now be able to
import { resetNextUuid } from 'react-accessible-accordion'
. Let us know how you get on with the upgrade 😀Sorry for resurrecting this issue. I’ve tried
resetNextUuid()
it resets id, but I still have an error in the developer console.Here is my code
What I’m doing wrong?