TanStackT
TanStack17mo ago
24 replies
popular-magenta

How to debug streaming hydration errors

I have a hydration error that occurs every ~5 loads on both dev and prod. I'm trying to use something like next-themes to set a theme class on the root element which is where this error originates, but I'm not quite sure where to start with it


Uncaught Error: This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition.
    at updateDehydratedSuspenseComponent (chunk-PFMSSJLQ.js?v=2f7b2551:15345:56)
    at updateSuspenseComponent (chunk-PFMSSJLQ.js?v=2f7b2551:15118:24)
    at beginWork (chunk-PFMSSJLQ.js?v=2f7b2551:15939:22)
Was this page helpful?