-
Notifications
You must be signed in to change notification settings - Fork 408
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Duplicates
- I have searched the existing issues
Latest version
- I have tested the latest version
Current behavior 😯
If a client only component is added in app.tsx and when the matching route suspends then a hydration mismatch error is caused.
Expected behavior 🤔
There should be no hydration mismatch error when including a client only component anywhere in the app
Steps to reproduce 🕹
Steps:
- Open https://stackblitz.com/edit/github-hn2yqi?file=src%2Froutes%2Findex.tsx
- Reload the page
- Wait for 1 second and notice a hydration mismatch error
- If you set the variable
perform_hydration_errorto false then you shall see the hydration error disappear - This is because setting
perform_hydration_errorto false prevents the matching route in index.tsx from suspending
Context 🔦
I am a maintainer of TanStack Solid Query. I found this error because I wanted to create the hackernews demo using SolidStart and SolidQuery. Adding the SolidQueryDevtools that are only supposed to run on the client was breaking the app. Any ideas here would be greatly appreciated 🙏
Your environment 🌎
No response
dyzdyz010 and timothyallanmdynnl
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working