Skip to content
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

Hydration mismatch in Accordion SSR tests when multiple tests are written #2072

Open
saurabhdaware opened this issue Mar 8, 2024 · 2 comments
Labels
P2 Not important

Comments

@saurabhdaware
Copy link
Member

Unsure if its specific to Accordion because Accordion internally uses our Collapsible component and id of this internal collapsible component is different on server and client

image

How to Reproduce

  • Go to Accordion.ssr.test.tsx and add another test on SSR
@anuraghazra
Copy link
Member

🤔 This looks like it's the id counter increasing because of adding more components on the page/test. Not sure why is this throwing SSR mismatch.

Did you tried stopping and starting the test freshly after adding the extra test?

@saurabhdaware
Copy link
Member Author

Did you tried stopping and starting the test freshly after adding the extra test?

how did I miss the most basic step of computer engineering. Lemme try

@saurabhdaware saurabhdaware added the P2 Not important label Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 Not important
Projects
None yet
Development

No branches or pull requests

2 participants