T
TanStack5d ago
protestant-coral

Hydration error even when not rendering anything ?

Hi, I'm new to React and its hydration errors. I'm coming from Qwik/Solid. I'm getting the Hydration error in my console. So I tried to pinpoint what component triggers it. And I ended up rendering nothing (Commenting <Outlet/> in __root.tsx):
function RootComponent() {
return (
<RootDocument>
<StrictMode>{/* <Outlet /> */}</StrictMode>
<TanStackRouterDevtools />
</RootDocument>
);
}
function RootComponent() {
return (
<RootDocument>
<StrictMode>{/* <Outlet /> */}</StrictMode>
<TanStackRouterDevtools />
</RootDocument>
);
}
And I'm still getting this error. Is there some configuration I am missing ? Thanks for your help :)
3 Replies
constant-blue
constant-blue5d ago
is this taken from an example?
protestant-coral
protestant-coralOP5d ago
Hi, I'm not quite sure what you mean by that question
constant-blue
constant-blue5d ago
are you using one of the examples from the router/start monorepro? in any case please provide a complete minimal reproducer as well as the actual error message you encounter

Did you find this page helpful?