[RESOLVED] Hydration Issue with Clerk, TSS, & Convex
Morning team,
I thought this issue would have been resolved upgrading to the new main branch, but seeing this hydration issue with Clerk, TSS, and Convex. Any thoughts on how I can resolve this?
8 Replies
absent-sapphireOP•2mo ago
Looks like it might be related to a 307 I'm getting on app load:
SW Versions:
"@clerk/tanstack-react-start": "0.18.0",
"@tanstack/react-router": "^1.121.34",
"@tanstack/react-router-devtools": "^1.121.34",
"@tanstack/react-start": "^1.121.35",
Code:
noble-gold•2mo ago
is isIndexPage different on client and server?
absent-sapphireOP•2mo ago
shouldn't be?
noble-gold•2mo ago
but your hydration diff seems to be affected by the theme?
absent-sapphireOP•2mo ago
oh yup you're totally right, theme provider is def causing it
maybe this is an artifact from when I was on just router... do y'all have a standard theme provider now for start in any of the templates?
noble-gold•2mo ago
not yet
absent-sapphireOP•2mo ago
Ahh, I looked back on a gist I found before and I was missing supressing the hydration warning it seems.
absent-sapphireOP•2mo ago
for y'alls record, here's the gist I was using, functionally works but yea good shout on pointing out this was the root cause.
https://gist.github.com/WellDone2094/16107a2a9476b28a5b394bee3fa1b8a3
Gist
Tan Stack Start Theme provider
Tan Stack Start Theme provider. GitHub Gist: instantly share code, notes, and snippets.